code: def test_should_give_precedence_to_text_passed_in_constructor(
      self, mock_telegram_hook
  ):
      mock_telegram_hook.return_value = mock.Mock()
      mock_telegram_hook.return_value.send_message.return_value = True
  
      hook = TelegramOperator(
          telegram_conn_id="telegram_default",
          chat_id="-420913222",
          task_id="telegram",
          text="some non empty text - higher precedence",
          telegram_kwargs={
              "custom_arg": "value",
              "text": "some text, that will be ignored",
          },
      )
      hook.execute(None)
  
      mock_telegram_hook.assert_called_once_with(
          telegram_conn_id="telegram_default",
          chat_id="-420913222",
          token=None,
      )
      mock_telegram_hook.return_value.send_message.assert_called_once_with(
          {
              "custom_arg": "value",
              "text": "some non empty text - higher precedence",
          },
      )
  
file_path: airflow/tests/providers/telegram/operators/test_telegram.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  import telegram
  import airflow
  from airflow.models import Connection
  from airflow.providers.telegram.operators.telegram import TelegramOperator
  from airflow.utils import db
label_desc: Use image node_id 6 for calling the TestTelegramOperator obj's underlying member method code with example usage: obj.test_should_give_precedence_to_text_passed_in_constructor(mock_telegram_hook) without return types