Public Member Functions | |
| def | __init__ (self, hass, bot, config, secret_token) |
| def | deregister_webhook (self) |
| def | register_webhook (self) |
| def | start_application (self) |
| def | stop_application (self, event=None) |
Public Attributes | |
| application | |
| base_url | |
| bot | |
| secret_token | |
| trusted_networks | |
| webhook_url | |
Private Member Functions | |
| def | _try_to_set_webhook (self) |
Handles all the push/webhook logic and passes telegram updates to `self.handle_update`.
Definition at line 58 of file webhooks.py.
| def homeassistant.components.telegram_bot.webhooks.PushBot.__init__ | ( | self, | |
| hass, | |||
| bot, | |||
| config, | |||
| secret_token | |||
| ) |
Create Application before calling super().
Definition at line 61 of file webhooks.py.
|
private |
Definition at line 76 of file webhooks.py.
| def homeassistant.components.telegram_bot.webhooks.PushBot.deregister_webhook | ( | self | ) |
Query telegram and deregister the URL for our webhook.
Definition at line 128 of file webhooks.py.
| def homeassistant.components.telegram_bot.webhooks.PushBot.register_webhook | ( | self | ) |
Query telegram and register the URL for our webhook.
Definition at line 97 of file webhooks.py.
| def homeassistant.components.telegram_bot.webhooks.PushBot.start_application | ( | self | ) |
Handle starting the Application object.
Definition at line 92 of file webhooks.py.
| def homeassistant.components.telegram_bot.webhooks.PushBot.stop_application | ( | self, | |
event = None |
|||
| ) |
Handle gracefully stopping the Application object.
Definition at line 122 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBot.application |
Definition at line 67 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBot.base_url |
Definition at line 71 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBot.bot |
Definition at line 63 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBot.secret_token |
Definition at line 65 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBot.trusted_networks |
Definition at line 64 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBot.webhook_url |
Definition at line 74 of file webhooks.py.