Creates a TelegramPoller for the given bot and chat.
The Telegram Bot API token.
The chat ID to filter from.
Async callback for text messages and callback data.
Sets an optional photo handler for receipt import.
Callback invoked with file_id (and optional caption) on photo.
Nothing — this is a side-effecting setter.
Starts the long-poll loop, blocking until stop() is called. Clears any old pending messages before entering the loop. Supersedes a run that is still in progress.
Procedure indicating the poll loop has ended.
Stops the poll loop and aborts any in-flight HTTP request.
Procedure indicating the poller was stopped.
Stops the poller and confirms all processed updates with Telegram so a future getUpdates does not replay them.
Procedure indicating the flush status.
Long-polls the Telegram Bot API for updates and dispatches them to a handler.