Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.telegram.notify.TelegramNotificationService Class Reference
Inheritance diagram for homeassistant.components.telegram.notify.TelegramNotificationService:
[legend]
Collaboration diagram for homeassistant.components.telegram.notify.TelegramNotificationService:
[legend]

Public Member Functions

def __init__ (self, hass, chat_id)
 
def send_message (self, message="", **kwargs)
 

Public Attributes

 hass
 

Private Attributes

 _chat_id
 

Detailed Description

Implement the notification service for Telegram.

Definition at line 60 of file notify.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.telegram.notify.TelegramNotificationService.__init__ (   self,
  hass,
  chat_id 
)
Initialize the service.

Definition at line 63 of file notify.py.

Member Function Documentation

◆ send_message()

def homeassistant.components.telegram.notify.TelegramNotificationService.send_message (   self,
  message = "",
**  kwargs 
)
Send a message to a user.

Definition at line 68 of file notify.py.

Member Data Documentation

◆ _chat_id

homeassistant.components.telegram.notify.TelegramNotificationService._chat_id
private

Definition at line 65 of file notify.py.

◆ hass

homeassistant.components.telegram.notify.TelegramNotificationService.hass

Definition at line 66 of file notify.py.


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