Expand description
Structs§
Constants§
- HTTP_
TIMEOUT_ SECS - HTTP timeout for every Bot API request. Must exceed
LONG_POLL_TIMEOUT_SECSso an idle long poll ends as an emptyokresponse from Telegram, not as a client-side timeout. - LONG_
POLL_ TIMEOUT_ SECS - Server-side long-poll window (seconds) used by
Bot::start_polling. Telegram holds the getUpdates request open until an update arrives or this many seconds pass, so delivery stays instant while an idle bot makes one request per window instead of several per second.