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
Built using discord.js-selfbot-v13, Grammy and TypeScript