Selfbot that forwards your Discord messages to Telegram
Warning: Selfbots are against Discord's Terms of Service, use at your own risk!
-
Install node.js from https://nodejs.org/en/
Important: You should use version 18 or newer!
If your system doesn't have Node 18 (or newer), you can use Node Version Manager.
-
Clone this project:
git clone https://github.com/tapnisu/forwarding-discord-telegram.git cd forwarding-discord-telegram
-
corepack enable corepack install
-
Create
.env
fileDISCORD_TOKEN=<YOUR_DISCORD_TOKEN> TELEGRAM_TOKEN=<YOUR_TELEGAM_TOKEN> TELEGRAM_CHAT_ID=<YOUR_TELEGRAM_CHAT_ID> # Optional # TELEGRAM_TOPIC_ID=<YOUR_TELEGRAM_TOKEN_ID>
-
Config your bot via
config.json
(insert your values){ "outputChannels": [], "mutedGuildsIds": [], "allowedGuildsIds": [], "mutedChannelsIds": [], "allowedChannelsIds": [], "allowedUsersIds": [], "mutedUsersIds": [], "channelConfigs": {}, "disableLinkPreview": false, "imagesAsMedia": true, "showDate": false, "showChat": true, "stackMessages": false, "showMessageUpdates": false, "showMessageDeletions": false }
-
Install dependencies:
pnpm install
-
Build bot via
pnpm build
-
Run bot via
pnpm start
-
Config your bot via
config.json
(insert your values){ "outputChannels": [], "mutedGuildsIds": [], "allowedGuildsIds": [], "mutedChannelsIds": [], "allowedChannelsIds": [], "allowedUsersIds": [], "mutedUsersIds": [], "channelConfigs": {}, "disableLinkPreview": false, "imagesAsMedia": true, "showDate": false, "showChat": true, "stackMessages": false, "showMessageUpdates": false, "showMessageDeletions": false }
-
Run forwarding-discord-telegram using Docker
docker run -d \ --name forwarding-discord-telegram \ --env DISCORD_TOKEN=${DISCORD_TOKEN} \ --env TELEGRAM_TOKEN=${TELEGRAM_TOKEN} \ --env TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID} \ -v $(pwd)/config.json:/app/config.json \ --restart unless-stopped \ tapnisu/forwarding-discord-telegram
-
Config your bot via
config.json
(insert your values){ "outputChannels": [], "mutedGuildsIds": [], "allowedGuildsIds": [], "mutedChannelsIds": [], "allowedChannelsIds": [], "allowedUsersIds": [], "mutedUsersIds": [], "channelConfigs": {}, "disableLinkPreview": false, "imagesAsMedia": true, "showDate": false, "showChat": true, "stackMessages": false, "showMessageUpdates": false, "showMessageDeletions": false }
-
Run forwarding-discord-telegram using Docker Compose
docker compose up -d