Python script using telethon for auto replying telegram message
How to use
-
Get Telegram API Key
got to https://my.telegram.org and go to API development tools -
Install Python
https://www.python.org/downloads/ -
Install telethon
https://docs.telethon.dev/en/latest/basic/installation.html -
Open .env and setup your environtment notes: if debug mode set to true, script will only response to message from self
API_ID = YOUR API ID
API_HASH = 'YOUR API HASH'
DEBUG_MODE = false
-
Run main.py
-
Enjoy! 🍻
Example
inspired by https://gist.github.com/yi-jiayu/acc31fbad5a25f746430428ce4d62c28