Skip to content

tapnisu/forwarding-discord-telegram

Repository files navigation

Forwarding Discord to Telegram

Selfbot that forwards your Discord messages to Telegram

Warning: Selfbots are against Discord's Terms of Service, use at your own risk!

Setup

  1. Install node.js from https://nodejs.org/en/

    Important: You should use version 16 or newer!

    If your system doesn't have Node 16 (or newer), you can use Node Version Manager.

  2. Clone this project:

    git clone https://github.com/tapnisu/forwarding-discord-telegram.git
    cd forwarding-discord-telegram
  3. Install pnpm using Corepack:

    corepack enable
    pnpm install
  4. Create .env file

    DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>
    TELEGRAM_TOKEN=<YOUR_TELEGRAM_TOKEN>
    TELEGRAM_CHAT_ID=<YOUR_TELEGRAM_CHAT_ID>
  5. 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
    }
  6. Install dependencies:

    pnpm install
  7. Build bot via

    pnpm build
  8. Run bot via

    pnpm start

🎉 Now you got your bot running 🎉

Built using discord.js-selfbot-v13, Grammy and TypeScript