A simple script to set your birthday in telegram relative to the current date. Birthday only once a year everyday! Just for fun
- Clone the repository
- Install poetry woth python 3.10 or higher
- Install depencies:
poetry install - Create config.yml:
api_idandapi_hashfrom my.telegram.orgdelta: set delta relative to the current datedate:year,monthanddayparams will override relative now + date result if set
Example config for birth year=2001 and always today:
api_id: 12345
api_hash: abcd
delta:
weeks: 0
days: 0
hours: 0
date:
year: 2001Another example to be always 18 y.o. and birthday each month 1st day:
api_id: 12345
api_hash: abcd
delta:
weeks: 0
days: -6 574 # 365*18+4
hours: 0
date:
day: 1You can use it in two ways
poetry run python main.py
On first run you will authorise into you account, after that you can run it without interaction, for example with cron
You have to run it manual first time in order to authorise the account
0 12 * * * cd /path/to/myRelativeBirthday && poetry run python main.py