Forwards messages from Discord to Telegram channel
Before starting, you must first configure config.py
- Change TOKENDS (how to find token discord)
- Change TOKENTG (how to find token telegram)
- Change GROUP_TO_TOKEN(how to find channel ID telegram)
For the bot to work on heroku, you need to create a few additional files
- Create a file named
Procfile
with code:
worker: python main.py
- Create a file named
requirements.txt
with code:
discord==1.7.3
telebot==0.0.4
pyTelegramBotAPI==4.4.0
- Create a heroku project and select your repository (must be private). Deploy project
- Activate main.py in resources tab
Don't give the discord bot admin rights. So it will be possible through the role to regulate the channels that he will read