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

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
 

Detailed Description

View for handling webhook calls from Telegram.

Definition at line 134 of file webhooks.py.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ post()

def homeassistant.components.telegram_bot.webhooks.PushBotView.post (   self,
  request 
)
Accept the POST from telegram.

Definition at line 149 of file webhooks.py.

Member Data Documentation

◆ application

homeassistant.components.telegram_bot.webhooks.PushBotView.application

Definition at line 145 of file webhooks.py.

◆ bot

homeassistant.components.telegram_bot.webhooks.PushBotView.bot

Definition at line 144 of file webhooks.py.

◆ hass

homeassistant.components.telegram_bot.webhooks.PushBotView.hass

Definition at line 143 of file webhooks.py.

◆ name

string homeassistant.components.telegram_bot.webhooks.PushBotView.name = "telegram_webhooks"
static

Definition at line 139 of file webhooks.py.

◆ requires_auth

bool homeassistant.components.telegram_bot.webhooks.PushBotView.requires_auth = False
static

Definition at line 137 of file webhooks.py.

◆ secret_token

homeassistant.components.telegram_bot.webhooks.PushBotView.secret_token

Definition at line 147 of file webhooks.py.

◆ trusted_networks

homeassistant.components.telegram_bot.webhooks.PushBotView.trusted_networks

Definition at line 146 of file webhooks.py.

◆ url

homeassistant.components.telegram_bot.webhooks.PushBotView.url = TELEGRAM_WEBHOOK_URL
static

Definition at line 138 of file webhooks.py.


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