利用 Telegram Bot 获取 WARP+ 推荐奖励流量并通知用户
- 刷取一定次数
- 不指定次数按 +∞ 刷取
- 指定次数刷取
- 刷取结果统计
- 添加管理命令
- 支持他人刷取
- 设置定时任务
- 查询当前流量
- 支持多种语言
Warning 需要 Python >= 3.7
git clone --depth=1 https://github.com/Oreomeow/warpplus && cd warpplus
pip3 install -r requirements.txt
-
通过 @BotFather 获取 Bot API Token
-
通过 WARP APP 获取 ID
-
修改
config.json
{ "TOKEN": "# Telegram bot API Token (可在 @botfather 获取,如 10xxx4:AAFcqxxxxgER5uw)", "REFERRER": "# WARP 应用内的设备 ID", "USER_ID": "# Telegram 用户 ID (给 @getidsbot 发送 /start 获取到的纯数字 ID,如 1434078534)", "GIFT_LIMIT": "# 限制其他用户单次刷取次数,如 10,不限制则输入 0" }
python3 warpplus.py
Ctrl + C
退出
使用 tmux
或者 screen
运行。例如 tmux
安装:
# Debian or Ubuntu
apt install tmux
# CentOS or RedHat
yum install tmux
tmux
使用:
tmux new -s warpplus
cd warpplus
python3 warpplus.py
然后键盘按下 Ctrl + B D
即可 detach 当前窗口。
start - 开始使用
plus - (<n>) 💂♂️管理员账号添加流量,不输入次数视为 +∞
bind - <referrer> 绑定账号
unbind - 解除绑定
gift - (<n>) 获取流量,不输入次数视为 +∞
stop - 💂♂️管理员停止运行中的任务