Home Assistant Unofficial Reference 2024.12.1
__init__.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.telegram_bot.BaseTelegramBotEntity
 
class  homeassistant.components.telegram_bot.TelegramNotificationService
 

Namespaces

 homeassistant.components.telegram_bot
 

Functions

io.BytesIO homeassistant.components.telegram_bot._read_file_as_bytesio (str file_path)
 
bool homeassistant.components.telegram_bot.async_setup (HomeAssistant hass, ConfigType config)
 
Bot homeassistant.components.telegram_bot.initialize_bot (HomeAssistant hass, dict p_config)
 
def homeassistant.components.telegram_bot.load_data (hass, url=None, filepath=None, username=None, password=None, authentication=None, num_retries=5, verify_ssl=None)
 

Variables

 homeassistant.components.telegram_bot._LOGGER = logging.getLogger(__name__)
 
string homeassistant.components.telegram_bot.ATTR_ALLOWS_MULTIPLE_ANSWERS = "allows_multiple_answers"
 
string homeassistant.components.telegram_bot.ATTR_ANSWERS = "answers"
 
string homeassistant.components.telegram_bot.ATTR_ARGS = "args"
 
string homeassistant.components.telegram_bot.ATTR_AUTHENTICATION = "authentication"
 
string homeassistant.components.telegram_bot.ATTR_CALLBACK_QUERY = "callback_query"
 
string homeassistant.components.telegram_bot.ATTR_CALLBACK_QUERY_ID = "callback_query_id"
 
string homeassistant.components.telegram_bot.ATTR_CAPTION = "caption"
 
string homeassistant.components.telegram_bot.ATTR_CHANNEL_POST = "channel_post"
 
string homeassistant.components.telegram_bot.ATTR_CHAT_ID = "chat_id"
 
string homeassistant.components.telegram_bot.ATTR_CHAT_INSTANCE = "chat_instance"
 
string homeassistant.components.telegram_bot.ATTR_DATA = "data"
 
string homeassistant.components.telegram_bot.ATTR_DATE = "date"
 
string homeassistant.components.telegram_bot.ATTR_DISABLE_NOTIF = "disable_notification"
 
string homeassistant.components.telegram_bot.ATTR_DISABLE_WEB_PREV = "disable_web_page_preview"
 
string homeassistant.components.telegram_bot.ATTR_EDITED_MSG = "edited_message"
 
string homeassistant.components.telegram_bot.ATTR_FILE = "file"
 
string homeassistant.components.telegram_bot.ATTR_FROM_FIRST = "from_first"
 
string homeassistant.components.telegram_bot.ATTR_FROM_LAST = "from_last"
 
string homeassistant.components.telegram_bot.ATTR_IS_ANONYMOUS = "is_anonymous"
 
string homeassistant.components.telegram_bot.ATTR_KEYBOARD = "keyboard"
 
string homeassistant.components.telegram_bot.ATTR_KEYBOARD_INLINE = "inline_keyboard"
 
string homeassistant.components.telegram_bot.ATTR_MESSAGE = "message"
 
string homeassistant.components.telegram_bot.ATTR_MESSAGE_TAG = "message_tag"
 
string homeassistant.components.telegram_bot.ATTR_MESSAGE_THREAD_ID = "message_thread_id"
 
string homeassistant.components.telegram_bot.ATTR_MESSAGEID = "message_id"
 
string homeassistant.components.telegram_bot.ATTR_MSG = "message"
 
string homeassistant.components.telegram_bot.ATTR_MSGID = "id"
 
string homeassistant.components.telegram_bot.ATTR_ONE_TIME_KEYBOARD = "one_time_keyboard"
 
string homeassistant.components.telegram_bot.ATTR_OPEN_PERIOD = "open_period"
 
string homeassistant.components.telegram_bot.ATTR_OPTIONS = "options"
 
string homeassistant.components.telegram_bot.ATTR_PARSER = "parse_mode"
 
string homeassistant.components.telegram_bot.ATTR_PASSWORD = "password"
 
string homeassistant.components.telegram_bot.ATTR_QUESTION = "question"
 
string homeassistant.components.telegram_bot.ATTR_REPLY_TO_MSGID = "reply_to_message_id"
 
string homeassistant.components.telegram_bot.ATTR_REPLYMARKUP = "reply_markup"
 
string homeassistant.components.telegram_bot.ATTR_RESIZE_KEYBOARD = "resize_keyboard"
 
string homeassistant.components.telegram_bot.ATTR_SHOW_ALERT = "show_alert"
 
string homeassistant.components.telegram_bot.ATTR_STICKER_ID = "sticker_id"
 
string homeassistant.components.telegram_bot.ATTR_TARGET = "target"
 
string homeassistant.components.telegram_bot.ATTR_TEXT = "text"
 
string homeassistant.components.telegram_bot.ATTR_TIMEOUT = "timeout"
 
string homeassistant.components.telegram_bot.ATTR_TITLE = "title"
 
string homeassistant.components.telegram_bot.ATTR_URL = "url"
 
string homeassistant.components.telegram_bot.ATTR_USER_ID = "user_id"
 
string homeassistant.components.telegram_bot.ATTR_USERNAME = "username"
 
string homeassistant.components.telegram_bot.ATTR_VERIFY_SSL = "verify_ssl"
 
 homeassistant.components.telegram_bot.BASE_SERVICE_SCHEMA
 
string homeassistant.components.telegram_bot.CONF_ALLOWED_CHAT_IDS = "allowed_chat_ids"
 
string homeassistant.components.telegram_bot.CONF_PROXY_PARAMS = "proxy_params"
 
string homeassistant.components.telegram_bot.CONF_PROXY_URL = "proxy_url"
 
string homeassistant.components.telegram_bot.CONF_TRUSTED_NETWORKS = "trusted_networks"
 
 homeassistant.components.telegram_bot.CONFIG_SCHEMA
 
list homeassistant.components.telegram_bot.DEFAULT_TRUSTED_NETWORKS = [ip_network("149.154.160.0/20"), ip_network("91.108.4.0/22")]
 
string homeassistant.components.telegram_bot.DOMAIN = "telegram_bot"
 
string homeassistant.components.telegram_bot.EVENT_TELEGRAM_CALLBACK = "telegram_callback"
 
string homeassistant.components.telegram_bot.EVENT_TELEGRAM_COMMAND = "telegram_command"
 
string homeassistant.components.telegram_bot.EVENT_TELEGRAM_SENT = "telegram_sent"
 
string homeassistant.components.telegram_bot.EVENT_TELEGRAM_TEXT = "telegram_text"
 
string homeassistant.components.telegram_bot.PARSER_HTML = "html"
 
string homeassistant.components.telegram_bot.PARSER_MD = "markdown"
 
string homeassistant.components.telegram_bot.PARSER_MD2 = "markdownv2"
 
string homeassistant.components.telegram_bot.PARSER_PLAIN_TEXT = "plain_text"
 
string homeassistant.components.telegram_bot.SERVICE_ANSWER_CALLBACK_QUERY = "answer_callback_query"
 
string homeassistant.components.telegram_bot.SERVICE_DELETE_MESSAGE = "delete_message"
 
string homeassistant.components.telegram_bot.SERVICE_EDIT_CAPTION = "edit_caption"
 
string homeassistant.components.telegram_bot.SERVICE_EDIT_MESSAGE = "edit_message"
 
string homeassistant.components.telegram_bot.SERVICE_EDIT_REPLYMARKUP = "edit_replymarkup"
 
string homeassistant.components.telegram_bot.SERVICE_LEAVE_CHAT = "leave_chat"
 
dictionary homeassistant.components.telegram_bot.SERVICE_MAP
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_ANSWER_CALLBACK_QUERY
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_DELETE_MESSAGE
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_EDIT_CAPTION
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_EDIT_MESSAGE
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_EDIT_REPLYMARKUP
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_LEAVE_CHAT = vol.Schema({vol.Required(ATTR_CHAT_ID): vol.Coerce(int)})
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_SEND_FILE
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_SEND_LOCATION
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_SEND_MESSAGE
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_SEND_POLL
 
 homeassistant.components.telegram_bot.SERVICE_SCHEMA_SEND_STICKER
 
string homeassistant.components.telegram_bot.SERVICE_SEND_ANIMATION = "send_animation"
 
string homeassistant.components.telegram_bot.SERVICE_SEND_DOCUMENT = "send_document"
 
string homeassistant.components.telegram_bot.SERVICE_SEND_LOCATION = "send_location"
 
string homeassistant.components.telegram_bot.SERVICE_SEND_MESSAGE = "send_message"
 
string homeassistant.components.telegram_bot.SERVICE_SEND_PHOTO = "send_photo"
 
string homeassistant.components.telegram_bot.SERVICE_SEND_POLL = "send_poll"
 
string homeassistant.components.telegram_bot.SERVICE_SEND_STICKER = "send_sticker"
 
string homeassistant.components.telegram_bot.SERVICE_SEND_VIDEO = "send_video"
 
string homeassistant.components.telegram_bot.SERVICE_SEND_VOICE = "send_voice"