airflow.providers.telegram.operators.telegram
¶
Operator for Telegram
Module Contents¶
-
class
airflow.providers.telegram.operators.telegram.
TelegramOperator
(*, telegram_conn_id: str = 'telegram_default', token: Optional[str] = None, chat_id: Optional[str] = None, text: str = 'No message has been set.', telegram_kwargs: Optional[dict] = None, **kwargs)[source]¶ Bases:
airflow.models.BaseOperator
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
- Parameters