Sends messages to telegram contacts. Period is set using crontab syntax. This project is a kind of tribute to Mark Lutz's "Learning Python".
-
Get your telegram account api_hash and api_id and save them into
secrets/api_hash
andsecrets/api_id
-
Add user id, message and cron to
pyCRONos.yml
telegram: subscribers: '@user_name': # @ symbol can be omitted message: "don't forget ur pills" cron: '29 0 * * *' # At 00:29 UTC every day
-
Run pyCRONos.py
nohup python pyCRONos.py &> /dev/null &
-
Message will send repeatedly to user according to
pyCRONos.yml