Skip to content

TeleDis, A Next.js application that bridges Telegram and Discord channels with a user-friendly web UI for seamless integration.

Notifications You must be signed in to change notification settings

shadowctrl/TeleDis

Repository files navigation

Telegram to Discord Mirror Bot

This Next.js application serves as a bot that mirrors messages from a Telegram channel to a Discord channel using webhooks.

Important Notice

This Application is still under development. Please be patient for daily updates.

Table of Contents

Overview

A Next.js app uses server-side rendering to power a bot connecting Telegram and Discord. It fetches Telegram messages via API (Long Pooling Method), forwards them to Discord using webhooks, ensuring real-time sync. Seamless platform interaction without switching.

Additionally, the app features a web UI with a live dashboard for monitoring message flow and settings configuration for managing bot preferences and integrations.

Features

  • Live Dashboard & Monitoring
  • Built-in logging with Next.js API
  • 24-hour message backup on errors
  • Efficient webhook integration
  • Server-Side Rendering for reliable performance

Prerequisites

  1. Telegram Bot Token
  2. Discord webhook URL
  3. Telegram Channel ID
  4. Telegram & Discord channel
  5. server for continuous monitoring. Low budget hosting setup. Contact query@shadowctrl.me

Getting Started

To deploy and run the Telegram to Discord Message Mirror Bot locally or on your server:

  1. Clone the repository:

    git clone https://github.com/shadowctrl/Telegram-Discord-Bot
    cd telegram-to-discord-bot
    
  2. Install Dependencies:

    yarn install or npm install
    
  3. Configure up environment variables: edit .env.local in parent directory with approrpriate values. set NEXT_PUBLIC_Base_Url to your next application url. If not sure leave it as it is

    Telegram_Token=1274727484:AHBDFHSDFH-SDFJBSDHJF-SDHBBS
    NEXT_PUBLIC_Base_Url=http://localhost:3000
    
  4. Start the Application

    yarn dev or npm run dev
    
  5. Open https://localhost:3000/settings in your browser

  1. Go with your First message in telegram channel which should appear automaically in Discord channel via webhook. For any issues (click here] to get support.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file. Please refer Step 3 in Getting Started

Telegram ID

Discord Webhook URL

Technologies Used

  • Next.js - React framework with server-side rendering.
  • Telegram API - API for interacting with Telegram bots and channels.
  • Discord Webhooks - Webhooks for sending messages to Discord channels.

Contributing

Contributions are always welcome!

  • Make a pull request

Developers

Support

For support, raise a issue here or email admin@shadowctrl.me.

💰 You can help me by Donating

BuyMeACoffee PayPal