- Create an app at my.telegram.org and insert its
API_ID
andAPI_HASH
into.env
- Run
python3 get_chats.py
to look up desiredPRIVATE_CHAT_ID
andREDIRECT_CHAT_ID
to add them into.env
sudo su
crontab -e
- Create a Cron job based on
crontab-e.example
- Note that running with
{"id": 0}
will redirect all available messages from private chat. To avoid this, figure out last channel message id and paste it there - Done