TelegramOperator

Telegram

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.

View Source

Last Updated: May. 7, 2021

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_idstrTelegram connection ID which its password is Telegram API token
tokenstrTelegram API Token
chat_idstrTelegram chat ID for a chat/channel/group
textstrMessage to be sent on telegram
telegram_kwargsdictExtra 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

Was this page helpful?