Classes | |
| class | PollBot |
Functions | |
| def | async_setup_platform (hass, bot, config) |
| None | error_callback (Exception error, Update|None update=None) |
| None | process_error (Update update, CallbackContext context) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
Support for Telegram bot using polling.
| def homeassistant.components.telegram_bot.polling.async_setup_platform | ( | hass, | |
| bot, | |||
| config | |||
| ) |
Set up the Telegram polling platform.
Definition at line 16 of file polling.py.
| None homeassistant.components.telegram_bot.polling.error_callback | ( | Exception | error, |
| Update | None | update = None |
||
| ) |
Log the error.
Definition at line 32 of file polling.py.
| None homeassistant.components.telegram_bot.polling.process_error | ( | Update | update, |
| CallbackContext | context | ||
| ) |
Telegram bot error handler.
Definition at line 26 of file polling.py.
|
private |
Definition at line 13 of file polling.py.