MENU

让你的Telegram用户名自动报时吧 ⏰

GitHub项目地址:https://github.com/xyou365/Telegram-Name-Updating

安装环境:Ubuntu 18.04

准备

运行环境:VPS,python3,python3-pip

创建应用:https://my.telegram.org/。只要填 App titleShort name 即可。获得 api_idapi_hash

下载Demo小程序到VPS上

git clone https://github.com/xyou365/Telegram-Name-Updating.git
cd Telegram-Name-Updating

安装Telethon

pip3 install -r requirements.txt

运行Demo小程序

python3 tg_username_update.py

Api认证和用户登陆

根据提示输入 api_idapi_hash 。接着输入手机号和验证码,如果账号开启了二次验,证根据提示再输入二次验证的密码。最后看到 It works! 表明成功了。 默认的是每30秒钟按照一定概率更新一次lastname到特定模式。

Archives QR Code
QR Code for this page
Tipping QR Code