1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-31 00:22:12 +00:00
Files
core/homeassistant/components/telegram_bot/broadcast.py

18 lines
453 B
Python

"""Support for Telegram bot to send messages only."""
import logging
from . import initialize_bot
_LOGGER = logging.getLogger(__name__)
async def async_setup_platform(hass, config):
"""Set up the Telegram broadcast platform."""
bot = initialize_bot(config)
bot_config = await hass.async_add_executor_job(bot.getMe)
_LOGGER.debug(
"Telegram broadcast platform setup with bot %s", bot_config["username"]
)
return True