Skip to main content

Module telegram

Module telegram 

Source
Expand description

Native Telegram Bot API client for batty.

Provides a blocking HTTP client that sends messages and polls for updates via the Telegram Bot API. Access control is enforced by numeric user IDs.

Structs§

InboundMessage
An inbound message received from a Telegram user.
TelegramBot
Blocking Telegram Bot API client.

Functions§

parse_get_me_response
Parse a getMe API response and extract the bot username. Exposed for testing.
setup_telegram
Interactive Telegram bot setup wizard. Called by batty telegram CLI command.