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 | |
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.
| 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.
| def homeassistant.components.telegram_bot.polling.PollBot.start_polling | ( | self, | |
event = None |
|||
| ) |
Start the polling task.
Definition at line 60 of file polling.py.
| def homeassistant.components.telegram_bot.polling.PollBot.stop_polling | ( | self, | |
event = None |
|||
| ) |
Stop the polling task.
Definition at line 67 of file polling.py.
| homeassistant.components.telegram_bot.polling.PollBot.application |
Definition at line 56 of file polling.py.
| homeassistant.components.telegram_bot.polling.PollBot.bot |
Definition at line 55 of file polling.py.