![](/telegram.png?_cchid=566cf29ca5ce1b72f4ba1a661b83dc60)
TelegramOperator
TelegramThis operator allows you to post messages to Telegram using Telegram Bot API. Takes both Telegram Bot API token directly or connection that has Telegram token in password field. If both supplied, token parameter will be given precedence.
Access Instructions
Install the Telegram provider package into your Airflow environment.
Import the module into your DAG file and instantiate it with your desired params.
Parameters
telegram_conn_idTelegram connection ID which its password is Telegram API token
tokenTelegram API Token
chat_idTelegram chat ID for a chat/channel/group
textMessage to be sent on telegram
telegram_kwargsExtra args to be passed to telegram client
Documentation
This operator allows you to post messages to Telegram using Telegram Bot API. Takes both Telegram Bot API token directly or connection that has Telegram token in password field. If both supplied, token parameter will be given precedence.
See also
For more information on how to use this operator, take a look at the guide: TelegramOperator