Public Member Functions | |
| def | __init__ (self, hass, bot, application, trusted_networks, secret_token) |
| def | post (self, request) |
Public Attributes | |
| application | |
| bot | |
| hass | |
| secret_token | |
| trusted_networks | |
Static Public Attributes | |
| string | name = "telegram_webhooks" |
| bool | requires_auth = False |
| url = TELEGRAM_WEBHOOK_URL | |
View for handling webhook calls from Telegram.
Definition at line 134 of file webhooks.py.
| def homeassistant.components.telegram_bot.webhooks.PushBotView.__init__ | ( | self, | |
| hass, | |||
| bot, | |||
| application, | |||
| trusted_networks, | |||
| secret_token | |||
| ) |
Initialize by storing stuff needed for setting up our webhook endpoint.
Definition at line 141 of file webhooks.py.
| def homeassistant.components.telegram_bot.webhooks.PushBotView.post | ( | self, | |
| request | |||
| ) |
Accept the POST from telegram.
Definition at line 149 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBotView.application |
Definition at line 145 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBotView.bot |
Definition at line 144 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBotView.hass |
Definition at line 143 of file webhooks.py.
|
static |
Definition at line 139 of file webhooks.py.
|
static |
Definition at line 137 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBotView.secret_token |
Definition at line 147 of file webhooks.py.
| homeassistant.components.telegram_bot.webhooks.PushBotView.trusted_networks |
Definition at line 146 of file webhooks.py.
|
static |
Definition at line 138 of file webhooks.py.