/mirror-telegram-2-discord

The script mirrors messages from a Telegram group to a Discord channel. Users authenticate via phone and choose groups to monitor, enabling real-time cross-platform communication. a specific group ID to start mirroring messages, ensuring real-time communication.

Primary LanguagePython

Project logo

Mirror Telegram 2 Discord

Status GitHub Issues GitHub Pull Requests License


This project mirrors messages from a specified Telegram group to a Discord channel, enabling users to authenticate their Telegram accounts and select groups for seamless cross-platform communication.

📝 Table of Contents

🧐 About

The script serves as a bridge between Telegram and Discord by mirroring messages from a specified Telegram group to a Discord channel. It allows users to authenticate their Telegram accounts using their phone numbers and select which groups they want to monitor. Once authenticated, users can either choose from a list of their Telegram groups or input a specific group ID to begin mirroring messages. The script continuously listens for new messages in the selected group and forwards them to the designated Discord webhook, ensuring real-time communication between the two platforms. This functionality enhances cross-platform interaction and keeps communities connected, regardless of their preferred messaging app.

🏁 Getting Started

To get started with this project, follow the steps below:

Prerequisites

  • Python 3.8 or higher
  • pip (Python package installer)
  • A Telegram account: Create an app telegram in https://my.telegram.org/apps save api_id and api_hash
  • A Discord account

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/mirror-telegram-2-discord.git
  2. Navigate to the project directory:
    cd mirror-telegram-2-discord
  3. Create a virtual environment:
    python -m venv venv
  4. Activate the virtual environment:
    venv\Scripts\activate
  5. Install the required packages:
    pip install -r requirements.txt
  6. Create a .env file in the root directory and add your Telegram API credentials:
    API_ID=your_api_id
    API_HASH=your_api_hash
  7. in config.py put your webhook discord url and a session_name (any name)
    WEBHOOK_URL='https://your_webhook_url'
    SESSION_NAME='your_session_name'

🎈 Usage

  1. Run the application
    python main.py
  2. Follow the prompts to authenticate with your Telegram account and select the group you wish to mirror to Discord.

🚀 Deployment

To deploy the application, you can run it locally or on a server. Make sure you have your .env file properly configured with your API credentials.

⛏️ Built Using

✍️ Authors

🆘 Support me

Wallet

Logo Network Wallet
Bitcoin Bitcoin bc1p24ya6frpr053dhnhsw8mx46kmecxv4s64udecxc5lrk9qcssgxssf6zkpw
Solana Solana EMzhyAkJkV4jM8N99A7xJt8vUEcLxcoGT1ukjYXb8NVa
EthereumSolanaPolygonFantom Binance, Ethereum, Polygon, Fantom ou outra EVM 0xE7402cB0191D1C27c9EA0DB14FE62Db2F183bbDe