Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.telegram_bot.polling.PollBot Class Reference
Inheritance diagram for homeassistant.components.telegram_bot.polling.PollBot:
[legend]
Collaboration diagram for homeassistant.components.telegram_bot.polling.PollBot:
[legend]

Public Member Functions

def __init__ (self, hass, bot, config)
 
def start_polling (self, event=None)
 
def stop_polling (self, event=None)
 

Public Attributes

 application
 
 bot
 

Detailed Description

Controls the Application object that holds the bot and an updater.

The application is set up to pass telegram updates to `self.handle_update`

Definition at line 46 of file polling.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.telegram_bot.polling.PollBot.__init__ (   self,
  hass,
  bot,
  config 
)
Create Application to poll for updates.

Definition at line 52 of file polling.py.

Member Function Documentation

◆ start_polling()

def homeassistant.components.telegram_bot.polling.PollBot.start_polling (   self,
  event = None 
)
Start the polling task.

Definition at line 60 of file polling.py.

◆ stop_polling()

def homeassistant.components.telegram_bot.polling.PollBot.stop_polling (   self,
  event = None 
)
Stop the polling task.

Definition at line 67 of file polling.py.

Member Data Documentation

◆ application

homeassistant.components.telegram_bot.polling.PollBot.application

Definition at line 56 of file polling.py.

◆ bot

homeassistant.components.telegram_bot.polling.PollBot.bot

Definition at line 55 of file polling.py.


The documentation for this class was generated from the following file: