Long polling provides a pull-based alternative to push proxy. External bots/backends can call getUpdates via BotMux instead of Telegram — no code changes needed, just change the API base URL.
Setup
- Enable the Long Poll toggle in bot settings
- In your backend, change the Telegram API base URL:
That’s it — no other code changes needed.
How It Works
Parameters
Response format is identical to Telegram: {"ok": true, "result": [...]}.
Features
- Telegram-compatible — same request/response format as Telegram API
- Multiple clients can poll the same bot simultaneously
- Works alongside push proxy — both can be active for the same bot
- In-memory ring buffer — 1000 updates per bot with waiter notification
- Authenticated API also available:
GET /api/updates/poll?bot_id=X (Bearer or session)
If your backend also sends messages, point those at /tgapi/ too to capture outgoing messages in BotMux.