Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.telegram_bot.polling Namespace Reference

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__)
 

Detailed Description

Support for Telegram bot using polling.

Function Documentation

◆ async_setup_platform()

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.

◆ error_callback()

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.

◆ process_error()

None homeassistant.components.telegram_bot.polling.process_error ( Update  update,
CallbackContext  context 
)
Telegram bot error handler.

Definition at line 26 of file polling.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.telegram_bot.polling._LOGGER = logging.getLogger(__name__)
private

Definition at line 13 of file polling.py.