This project automatically updates a Telegram profile picture exactly at the start of every hour by 30 degrees.
You can run it on your local PC or on a VM.
- At startup, the script waits until the next
HH:00 - Every hour:
- Rotates a base image by
hour × 30° - Deletes the current Telegram profile photo
- Uploads the newly rotated image
- Rotates a base image by
- Python 3.9+
- Telegram API credentials (
apiId,apiHash) - Telethon session file already authenticated
telethon>=1.30.0
Pillow>=9.0.0python3 -m venv
source bin/activate
pip install -r requirements.txtEdit script.py and set:
apiId = 123456
apiHash = "YOUR_API_HASH"With your credentials obtained at https://my.telegram.org/apps.
The first time you run the script it will ask for you to authenticate
python main.pyYou will be asked for:
-
Your phone number
-
The login code sent by Telegram
After successful login, the session.session file will be created automatically. From then on, the script will reuse this file and will not ask for a login code again.