This bot that can send Messages from Telegram to Discord (and back)
First install the nodejs and npm packages
sudo apt-get install nodejs && sudo apt-get install npm
then clone the git repos to your Server
git clone https://github.com/corusm/Transferbot.git
npm install
Here there are two urls of incstructions for creating a Discord and a Telegram Bot
Add your discord and telegram bot token to the tokens.json file
{
"discord": "placeYourToken",
"telegram": "placeYourToken"
}
Navigate to the directory where you have installed the bot (where the bot.js file is located) and run these commands:
- Start Bot:
npm start
- Stop Bot:
npm stop
- Test Bot:
npm test
All the logs that you see in the shell also get logged in the info.log file.
Add your username to the System (so it gets your ID):
- /auth
Add your group to the System:
- /authgroup "nickname"
List Telegram users connected to the System:
- /listusers
Send Message from Telegram to Discord:
- /send "channelName or username" - "message"
Add your username to the System (so it gets your ID):
- !auth
Send Messages from Discord to Telegram: with the nickname you just chose
- !send "nickname or username" - "message"
List Telegram users connected to the System:
- !listusers
If there is any bug to fix or you have a feature request do not hesitate to conctact me!