The base class for the telegram bot.
Definition at line 1024 of file __init__.py.
◆ __init__()
| def homeassistant.components.telegram_bot.BaseTelegramBotEntity.__init__ |
( |
|
self, |
|
|
|
hass, |
|
|
|
config |
|
) |
| |
Initialize the bot base class.
Definition at line 1027 of file __init__.py.
◆ _get_callback_query_event_data()
| tuple[str, dict[str, Any]] homeassistant.components.telegram_bot.BaseTelegramBotEntity._get_callback_query_event_data |
( |
|
self, |
|
|
CallbackQuery
|
callback_query |
|
) |
| |
|
private |
◆ _get_command_event_data()
| dict[str, str | list] homeassistant.components.telegram_bot.BaseTelegramBotEntity._get_command_event_data |
( |
str | None |
command_text | ) |
|
|
staticprivate |
◆ _get_message_event_data()
| tuple[str, dict[str, Any]] homeassistant.components.telegram_bot.BaseTelegramBotEntity._get_message_event_data |
( |
|
self, |
|
|
Message |
message |
|
) |
| |
|
private |
◆ _get_user_event_data()
| dict[str, Any] homeassistant.components.telegram_bot.BaseTelegramBotEntity._get_user_event_data |
( |
|
self, |
|
|
User |
user |
|
) |
| |
|
private |
◆ authorize_update()
| bool homeassistant.components.telegram_bot.BaseTelegramBotEntity.authorize_update |
( |
|
self, |
|
|
Update |
update |
|
) |
| |
Make sure either user or chat is in allowed_chat_ids.
Definition at line 1117 of file __init__.py.
◆ handle_update()
| bool homeassistant.components.telegram_bot.BaseTelegramBotEntity.handle_update |
( |
|
self, |
|
|
Update |
update, |
|
|
CallbackContext |
context |
|
) |
| |
Handle updates from bot application set up by the respective platform.
Definition at line 1032 of file __init__.py.
◆ allowed_chat_ids
| homeassistant.components.telegram_bot.BaseTelegramBotEntity.allowed_chat_ids |
◆ hass
| homeassistant.components.telegram_bot.BaseTelegramBotEntity.hass |
The documentation for this class was generated from the following file: