Real-time bridge from Telegram to Discord, including media.
Built with ❤️ by Synq
telegram-discord-forwarder is a Python-based message bridge that forwards Telegram group or channel content directly to a Discord channel using webhooks.
It supports text, photos, files, and works via user session (not a bot) for maximum flexibility.
- 🔄 Real-time forwarding from Telegram → Discord
- 🖼️ Supports media (photos, documents, etc.)
- 🧑💻 Uses Telethon user session login (not restricted like bots)
- 🔐
.envconfig for secure setup - 📂 Modular, clean code structure
- 📜 Logging system with debug toggle
- 🟢 Simple:
python main.py
Telegram-To-Discord-Forwarder/
├── main.py
├── telegram_bridge.py
├── discord_sender.py
├── config.py
├── .env
├── requirements.txt
└── README.md
git clone https://github.com/Synq-dev/Telegram-To-Discord-Forwarder.git
cd Telegram-To-Discord-Forwarderpython3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activatepip install -r requirements.txt- Go to https://my.telegram.org
- Log in and go to API Development Tools
- Create an application → Copy
api_idandapi_hash
- Open your Discord server settings
- Go to: Integrations → Webhooks → New Webhook
- Copy the webhook URL
Rename .env.example (if exists) or create .env:
TELEGRAM_API_ID=YOUR_API_ID
TELEGRAM_API_HASH=YOUR_API_HASH
DISCORD_WEBHOOK_URL=YOUR_DISCORD_WEBHOOK_URL
TELEGRAM_CHANNELS=channel_username,-1001234567890
SESSION_NAME=telegram_forwarder
DEBUG=falsepython main.pyOn first run, you’ll authenticate your Telegram account (code sent to Telegram app).
Session is saved as a .session file for future use.
- All logs are printed to the terminal
- A log file
telegram_forwarder.logis also created - Set
DEBUG=truein.envto see more output
- ❌ Auth errors: Re-check API credentials, or delete
.sessionand retry - ❌ No messages forwarding: Ensure
TELEGRAM_CHANNELSis valid (usernames or-100IDs) - ❌ Webhook errors: Verify Discord webhook URL
- ❌ Network errors: Check your internet and try again
Get custom tools built for your server or business. I build:
- Telegram + Discord Bots
- Cross-platform automation
- Private API integrations
📩 Contact Me for Paid Projects:
- 💬 Discord:
synq.dev - 📧 Email:
dev.synq@proton.me
If you found this useful, you can support my work by donating crypto:
| Coin | Address |
|---|---|
bc1qepy6uzu6k5hgtvzeqw7nyzpn98dzq9chna8jgl |
|
mmNe77AYbSRQRs54Db4Xuk3zoDY2gCNF8J4gPkCaKvF |
|
ltc1qf5tjcfdvwf9py4yd9ss9hdn2q6v2c8lgjyeax0 |
MIT License