Skip to content

A simple, small and fast discord to telegram bridge written in node.js

License

Notifications You must be signed in to change notification settings

DataScienceGuild/discord-telegram-bridge

Repository files navigation

Welcome to discord-telegram-bridge 👋

Version Documentation Maintenance License: GPL--3.0--or--later

A simple, small and fast discord to telegram bridge written in node.js

Install

npm install -g discord-telegram-bridge

Usage

  • Create a Discord bot.

  • Create a Telegram bot by talking to botFather IMPORTANT: Make the bot an admin in your group, or go to BotFather -> bot settings and disable private mode.

  • Create a Discord webhook. You can do this by going to Server settings -> Webhooks. Copy the URL, you'll need it later.

If you want to run it on heroku, you can just click the button below.

Deploy

  • Set env variables:
Env variable type value
TELEGRAM_BOT_TOKEN string You can get this by speaking with @BotFather on telegram and creating a new bot.
DISCORD_TOKEN string The bot token for your Discord application. Create a new app at the Discord Developer Portal , go to the bot section, click on Create a bot and copy the bot token it gives to you.
TELEGRAM_CHAT_ID string The ChatId of the telegram group you want to bridge.
DISCORD_CHANNEL_ID string The Discord ChannelId of the channel you want to bridge.
webhook_id and webhook_token string Those are part of the webhook URL you copied. webhook_id is a 18 characters long int, webhook_token is a ~70 chars long randomly generated string. Those are seperated by slashes in the url.
discord-telegram-bridge

Author

👤 Daniel Vanko

🤝 Contributing

Wondering what to contribute? The project has a codacy page at https://app.codacy.com/manual/daaniiieel/discord-telegram-bridge/dashboard. On the issues tab, you can see all the code quality (mostly code style) issues we have.

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Daniel Vanko.

This project is GPL--3.0--or--later licensed.

About

A simple, small and fast discord to telegram bridge written in node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published