code: def test_should_raise_exception_if_chat_id_is_not_provided_anywhere(
      self, mock_get_conn
  ):
      with pytest.raises(airflow.exceptions.AirflowException) as ctx:
          hook = TelegramHook(telegram_conn_id="telegram_default")
          hook.send_message({"text": "test telegram message"})
  
      assert "'chat_id' must be provided for telegram message" == str(
          ctx.value
      )
  
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  import telegram
  import airflow
  from airflow.models import Connection
  from airflow.providers.telegram.hooks.telegram import TelegramHook
  from airflow.utils import db
label_desc: Use image node_id 5 for calling the TestTelegramHook obj's underlying member method code with example usage: obj.test_should_raise_exception_if_chat_id_is_not_provided_anywhere(mock_get_conn) without return types