Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 1.24 KB

README.md

File metadata and controls

31 lines (17 loc) · 1.24 KB

Telegram-Name-Updating

Update (first/last/user) name of Telegram user every 30 seconds.

Reference documentation:Telethon

0. prerequisites

Operating environment:VPS,python3,python3-pip

Create an app:https://my.telegram.org/。Just fill in the App title and Short name. Get api_id and api_hash.

1. Download the Demo applet to the VPS

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

2. Install telethon

pip3 install -r requirements.txt

3. Run the Demo applet

python3 tg_username_update.py

4. api authentication and user login

Enter api_id and api_hash as prompted. Then enter the mobile phone number and verification code. If the account has enabled secondary verification, please enter the secondary verification password according to the prompts. Finally seeing It works! indicates success. The default is to update lastname to a specific mode with a certain probability every 30 seconds.

5. Temporarily CTRL+C to end the applet and re-hang it to run in the background

nohup python3 tg_username_update.py &