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 on GitHub

Last Updated: Oct. 23, 2022

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

Was this page helpful?