https://github.com/z-mio/baiduwp-bot
一个基于baiduwp-php API的百度网盘解析bot
https://github.com/z-mio/baiduwp-bot
bot python3 telegram-bot
Last synced: 8 months ago
JSON representation
一个基于baiduwp-php API的百度网盘解析bot
- Host: GitHub
- URL: https://github.com/z-mio/baiduwp-bot
- Owner: z-mio
- License: mit
- Created: 2023-07-15T08:52:43.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-13T10:07:41.000Z (over 2 years ago)
- Last Synced: 2024-01-13T19:32:24.582Z (over 2 years ago)
- Topics: bot, python3, telegram-bot
- Language: Python
- Homepage: https://t.me/getletbot
- Size: 658 KB
- Stars: 32
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# baiduwp-bot
一个基于[baiduwp-php](https://github.com/yuantuo666/baiduwp-php) API的百度网盘解析bot
体验一下:[@getletbot](https://t.me/getletbot)
功能预览




### 获取单个文件链接

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



## 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 里的配置信息**
``` python
#########################################
# 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 - 百度网盘解析
```