Long polling provides a pull-based alternative to push proxy. External bots/backends can callDocumentation Index
Fetch the complete documentation index at: https://botmux-dependabot-go-modules-modernc-org-sqlite-1-50-0.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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:
How It Works
Parameters
Response format is identical to Telegram:{"ok": true, "result": [...]}.
| Parameter | Description |
|---|---|
offset | Identifier of the first update to return |
limit | Maximum number of updates (max 100) |
timeout | Long polling timeout in seconds (max 60) |
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)