z-mio / baiduwp-bot

一个基于baiduwp-php API的百度网盘解析bot

Home Page:https://t.me/getletbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

baiduwp-bot

一个基于baiduwp-php API的百度网盘解析bot

体验一下:@getletbot

功能预览

enter description here

enter description here

enter description here

enter description here

获取单个文件链接

enter description here

获取当前文件夹下所有文件链接

enter description here

enter description here

enter description here

1.安装

1.安装 python3-pip

apt install python3-pip

2.将项目克隆到本地

git clone https://github.com/z-mio/baiduwp-bot.git && cd baiduwp-bot && pip3 install -r requirements.txt

3.修改 bot.py 里的配置信息

#########################################
# bot

api_id = '123456'  # 在 https://my.telegram.org/apps 获取

api_hash = '6f51a2b93a159b8f8ca07dafed4a776c'  # 在 https://my.telegram.org/apps 获取

bot_token = '6980461837:AAH2-gGWToP_7hcyhzKbbq04NZYW7YE4i6B'  # 在 https://t.me/BotFather 获取

members = [1447511233, -100123456789]  # 允许使用解析的 用户、群组、频道(群组和频道id需要加上-100)可通过 https://t.me/getletbot 获取id

baidu_version: Literal['3', '4'] = '4'  # 你部署的baiduwp-php版本

baidu_url = 'https://'  # 你的百度解析地址

baidu_password = ''  # 解析密码(不是后台密码)
#########################################
# 代理支持“socks4”、“socks5”和“http”
scheme = ''  # 'http'
hostname = ''  # '127.0.0.1'
port = ''  # '7890'
#########################################

2.运行

前台启动bot

python3 bot.py

后台启动bot

nohup python3 bot.py > botlog.log 2>&1 &

3.使用

发送/menu自动设置菜单

指令:

/bd - 百度网盘解析

About

一个基于baiduwp-php API的百度网盘解析bot

https://t.me/getletbot

License:MIT License


Languages

Language:Python 100.0%