- First:
APP_ID
andAPI_HASH
- Get it from my.telegram.orgSESSION
- A telethon session string, get it from here.FROM_CHANNEL
- Channel ID(s) split by space or just one channel ID.TO_CHANNEL
- Channel ID(s) split by space or just one channel ID.
- Chose a platform to deploy on:
Heroku/Kintohub/Zeet
Add the above values to the environment vars and deploy the bot.
Local Deoploys
- Clone the repo:
git clone https://github.com/Ayush7445/telegram-auto_forwarder
- Make a
.env
file in the root of the repo, like .env.sample and fill in the values.- Use
python3 bot.py
to start the bot.