Source: factory.conversation/ObjConversationTelegram.py
Telegram engine for the conversation framework.
Sends messages via the Telegram Bot API using
requests. Supports ReplyKeyboardMarkup for
option menus.
| Method | Signature | Description |
|---|---|---|
| transmit_message | transmit_message(message: str, chat_id: str = '') -> None |
Send a plain-text message to a Telegram |
| display_context | display_context(opts: dict) -> None |
Send conversation context as a Telegram |
| display_options | display_options(opts: dict) -> tuple |
Send options with a ReplyKeyboardMarkup and |
Telegram broker supporting both webhook and
long-polling modes.
| Method | Signature | Description |
|---|---|---|
| handle_update | handle_update(update: dict) -> None |
Process an inbound Telegram update dict. |
| run | run() -> None |
Long-polling loop for development use. |