Skip to content

cyprus-developer-community/discord-telegram-simple-relay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-telegram-simple-relay

A simple service written in Rust which listens to messages on a Discord channel and relay them to a Telegram chat.

Instructions

Set these env vars:

TELEGRAM_BOT_TOKEN=
DISCORD_BOT_TOKEN=
TELEGRAM_CHANNEL_ID=
DISCORD_CHANNEL_ID=

and

cargo run

TELEGRAM_BOT_TOKEN

Follow how to create a Telegram bot

DISCORD_BOT_TOKEN

Follow how to create a Discord bot

TELEGRAM_CHANNEL_ID

Open your channel via web, check the URL after the #. It should start with -100. https://web.telegram.org/a/#-100123456789

### DISCORD_CHANNEL_ID

Right click on any message in the channel and Copy Link. It's a / separated list of 3 IDs. Use the second one.

https://discord.com/channels/1234567890123456789/1234567890123456789/1234567890123456789

### LICENSE

MIT

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 74.5%
  • Dockerfile 25.5%