Step-by-step guide to set up and use the Wagram bridge.
- Open Telegram and search for @BotFather
- Send
/newbot - Choose a name (e.g.
Wagram Bridge) - Choose a username (e.g.
my_wagram_bot) - Copy the API token — you'll need it next
Use this token to access the HTTP API:
7123456789:AAHxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
git clone https://github.com/0xtbug/Wagram.git
cd Wagram
go mod downloadSet your bot token and start:
Linux / macOS:
export TELEGRAM_BOT_TOKEN="your-token-here"
go run ./cmd/wagramWindows (PowerShell):
$env:TELEGRAM_BOT_TOKEN = "your-token-here"
go run .\cmd\wagram\main.goYou should see:
Starting telegram-wa bridge...
Telegram bot started: @my_wagram_bot
Bridge is running. Press Ctrl+C to exit.
- Open Telegram and send
/scanto your bot - The bot will reply with a QR code image
- Open WhatsApp on your phone → Settings → Linked Devices → Link a Device
- Scan the QR code
- The bot will confirm:
✅ WhatsApp login successful!
Your session is saved to
wa_session.db. You won't need to scan again unless you log out.
- Create a Telegram group or use your DM with the bot
- Send
/bridge - The bot shows an inline keyboard with your recent WhatsApp contacts
- Tap the contact you want to bridge
- Done! Messages now flow both ways
Send /status to check the connection:
📊 Bridge Status
WhatsApp Connected: true
WhatsApp Logged In: true
Send /list to see active bridges:
🔗 Active Bridges:
1. WA: 628123456@s.whatsapp.net ↔ TG: -100123456
Once bridged, messages are forwarded automatically:
| Action | Result |
|---|---|
| Send text in TG group | Forwarded to WA contact |
| Send photo/video/doc in TG | Media forwarded to WA |
| WA contact sends text | Appears in TG group |
| WA contact sends media | Media appears in TG group |
Messages include sender attribution:
WhatsApp: Hello from WhatsApp!
Telegram: Hello from Telegram!
Send /unbridge in the Telegram group to remove the link.
✅ Bridge removed for this chat.
You can create multiple bridges:
- Create separate Telegram groups for each WhatsApp contact
- Run
/bridgein each group and select a different contact - Use
/listto see all active bridges
One WhatsApp contact can be bridged to multiple Telegram groups, but each Telegram group can only be linked to one WhatsApp contact.
| Problem | Solution |
|---|---|
| Bot doesn't respond | Check TELEGRAM_BOT_TOKEN is set correctly |
/scan shows error |
Make sure no other WhatsApp Web session is blocking |
| QR code expired | Send /scan again for a new QR code |
No contacts in /bridge |
Send a message to someone on WhatsApp first, contacts are discovered dynamically |
/status shows false |
Run /scan to re-login |
| Media not forwarding | Check file size limits (Telegram: 50MB for bot uploads) |