Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rikj000/discord-telegram-bridge
Discord <-> Telegram Bridge
https://github.com/rikj000/discord-telegram-bridge
bridge discord discord-bot node-js telegram telegram-bot
Last synced: 2 months ago
JSON representation
Discord <-> Telegram Bridge
- Host: GitHub
- URL: https://github.com/rikj000/discord-telegram-bridge
- Owner: Rikj000
- License: gpl-3.0
- Created: 2021-11-05T15:43:32.000Z (about 3 years ago)
- Default Branch: development
- Last Pushed: 2023-03-11T14:14:17.000Z (almost 2 years ago)
- Last Synced: 2024-04-16T04:05:46.725Z (9 months ago)
- Topics: bridge, discord, discord-bot, node-js, telegram, telegram-bot
- Language: JavaScript
- Homepage:
- Size: 52.7 KB
- Stars: 18
- Watchers: 2
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord-Telegram-bridge
`Discord` ↔️ `Telegram` Bridge
#### Setup:
> If you want to run it on heroku, you can just click the button below.[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Rikj000/Discord-Telegram-Bridge)
* Clone the GitHub repo
* Execute `npm install`
* Create a Discord webhook. You can do this by going to Server settings -> Webhooks. Copy the URL, you'll need it later.
* Set env variables:
- `TELEGRAM_BOT_TOKEN` - you can get this by speaking with @BotFather on telegram and creating a new bot.
- `DISCORD_TOKEN` - the bot token for your Discord application. Create a new app at the [Discord Developer Portal](https://discord.com/developers/applications), go to the bot section, click on Create a bot and copy the bot token it gives to you.
- `TELEGRAM_CHAT_ID` - The chat ID of the telegram group you want to bridge (even if public, don't use the chat's username)
- `DISCORD_CHANNEL_ID` - The Discord ChannelId of the channel you want to bridge
- `DISCORD_WEBHOOK_ID` and `DISCORD_WEBHOOK_TOKEN`. Those are part of the webhook URL you copied. `DISCORD_WEBHOOK_ID` is a 18 characters long int, `DISCORD_WEBHOOK_TOKEN` is a ~70 chars long randomly generated string. Those are seperated by slashes in the url.
- If you use Heroku, set `HEROKU_DYNO_URL` to make the dyno not timeout. You can find your dyno's URL in Heroku dashboard -> Open app
- If you need to forward Discord Bot messages -> Telegram set `DISCORD_FORWARD_BOT` to `true` (will cause duplicate messages in bridges that forward in both directions)* Run `npm start` or `node server.js` and you're set!