code: def test_telegram_channel():
      # START DOC INCLUDE
      from rasa.core.channels.telegram import TelegramInput
  
      input_channel = TelegramInput(
          # you get this when setting up a bot
          access_token="123:YOUR_ACCESS_TOKEN",
          # this is your bots username
          verify="YOUR_TELEGRAM_BOT",
          # the url your bot should listen for messages
          webhook_url="YOUR_WEBHOOK_URL",
      )
  
      s = rasa.core.run.configure_app([input_channel], port=5004)
      # END DOC INCLUDE
      # the above marker marks the end of the code snipped included
      # in the docs
      routes_list = utils.list_routes(s)
      assert routes_list["telegram_webhook.health"].startswith(
          "/webhooks/telegram"
      )
      assert routes_list["telegram_webhook.message"].startswith(
          "/webhooks/telegram/webhook"
      )
  
imports: import logging
  import jwt
  from typing import Dict
  from unittest.mock import patch, MagicMock
  import pytest
  from _pytest.logging import LogCaptureFixture
  from _pytest.monkeypatch import MonkeyPatch
  from aiogram.utils.exceptions import TelegramAPIError
  from aiohttp import ClientTimeout
  from aioresponses import aioresponses
  from sanic import Sanic
  import rasa.core.run
  import rasa.core.channels.channel
  from rasa.core import utils
  from rasa.core.channels import RasaChatInput, console
  from rasa.core.channels.channel import UserMessage
  from rasa.core.channels.rasa_chat import JWT_USERNAME_KEY, CONVERSATION_ID_KEY, INTERACTIVE_LEARNING_PERMISSION
  from rasa.core.channels.telegram import TelegramOutput
  from rasa.shared.exceptions import RasaException
  from rasa.utils.endpoints import EndpointConfig
  from tests.core import utilities
  from tests.utilities import json_of_latest_request, latest_request
label_desc: Use image node_id 6 for calling a global function with example usage: test_telegram_channel() without return types