class_docstr: 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.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:TelegramOperator`
  
  :param telegram_conn_id: Telegram connection ID which its password is Telegram API token
  :param token: Telegram API Token
  :param chat_id: Telegram chat ID for a chat/channel/group
  :param text: Message to be sent on telegram
  :param telegram_kwargs: Extra args to be passed to telegram client
code: def __init__(
      self,
      *,
      telegram_conn_id: str = "telegram_default",
      token: str | None = None,
      chat_id: str | None = None,
      text: str = "No message has been set.",
      telegram_kwargs: dict | None = None,
      **kwargs,
  ):
      self.chat_id = chat_id
      self.token = token
      self.telegram_kwargs = telegram_kwargs or {}
      self.text = text
  
      if telegram_conn_id is None:
          raise AirflowException(
              "No valid Telegram connection id supplied."
          )
  
      self.telegram_conn_id = telegram_conn_id
  
      super().__init__(**kwargs)
  
file_path: airflow/airflow/providers/telegram/operators/telegram.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from airflow.exceptions import AirflowException
  from airflow.models import BaseOperator
  from airflow.providers.telegram.hooks.telegram import TelegramHook
label_desc: Use image node_id 1 to create a new TelegramOperator object from inherited base classes: BaseOperator with example: obj = TelegramOperator()