code: def test_should_throw_exception_if_connection_id_is_none(self):
      with pytest.raises(airflow.exceptions.AirflowException) as ctx:
          TelegramOperator(task_id="telegram", telegram_conn_id=None)
  
      assert "No valid Telegram connection id supplied." == str(
          ctx.value
      )
  
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 3 for calling the TestTelegramOperator obj's underlying member method code with example usage: obj.test_should_throw_exception_if_connection_id_is_none() without return types