Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.telegram.notify Namespace Reference

Classes

class  TelegramNotificationService
 

Functions

TelegramNotificationService get_service (HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_DOCUMENT = "document"
 
string ATTR_INLINE_KEYBOARD = "inline_keyboard"
 
string ATTR_KEYBOARD = "keyboard"
 
string ATTR_PHOTO = "photo"
 
string ATTR_VIDEO = "video"
 
string ATTR_VOICE = "voice"
 
string CONF_CHAT_ID = "chat_id"
 
string DOMAIN = "telegram_bot"
 
 PLATFORM_SCHEMA
 

Detailed Description

Telegram platform for notify component.

Function Documentation

◆ get_service()

TelegramNotificationService homeassistant.components.telegram.notify.get_service ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Get the Telegram notification service.

Definition at line 48 of file notify.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.telegram.notify._LOGGER = logging.getLogger(__name__)
private

Definition at line 31 of file notify.py.

◆ ATTR_DOCUMENT

string homeassistant.components.telegram.notify.ATTR_DOCUMENT = "document"

Definition at line 39 of file notify.py.

◆ ATTR_INLINE_KEYBOARD

string homeassistant.components.telegram.notify.ATTR_INLINE_KEYBOARD = "inline_keyboard"

Definition at line 35 of file notify.py.

◆ ATTR_KEYBOARD

string homeassistant.components.telegram.notify.ATTR_KEYBOARD = "keyboard"

Definition at line 34 of file notify.py.

◆ ATTR_PHOTO

string homeassistant.components.telegram.notify.ATTR_PHOTO = "photo"

Definition at line 36 of file notify.py.

◆ ATTR_VIDEO

string homeassistant.components.telegram.notify.ATTR_VIDEO = "video"

Definition at line 37 of file notify.py.

◆ ATTR_VOICE

string homeassistant.components.telegram.notify.ATTR_VOICE = "voice"

Definition at line 38 of file notify.py.

◆ CONF_CHAT_ID

string homeassistant.components.telegram.notify.CONF_CHAT_ID = "chat_id"

Definition at line 41 of file notify.py.

◆ DOMAIN

string homeassistant.components.telegram.notify.DOMAIN = "telegram_bot"

Definition at line 33 of file notify.py.

◆ PLATFORM_SCHEMA

homeassistant.components.telegram.notify.PLATFORM_SCHEMA
Initial value:
1 = NOTIFY_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_CHAT_ID): vol.Coerce(int)}
3 )

Definition at line 43 of file notify.py.