text: import logging
  
  from aiogram import Bot, types
  from aiogram.contrib.middlewares.logging import LoggingMiddleware
  from aiogram.dispatcher import Dispatcher, webhook
  from aiogram.utils.executor import start_webhook
  from bot.settings import (BOT_TOKEN, HEROKU_APP_NAME,
                            WEBHOOK_URL, WEBHOOK_PATH,
                            WEBAPP_HOST, WEBAPP_PORT)
  
  bot = Bot(token=BOT_TOKEN)
  dp = Dispatcher(bot)
  dp.middleware.setup(LoggingMiddleware())
  
  
  @dp.message_handler(commands=['something'])
  async def nothing(message: types.Message):
      return webhook.SendMessage(message.chat.id, 'nothing')
  
  
  @dp.message_handler()
  async def echo(message: types.Message):
      logging.warning(f'Recieved a message from {message.from_user}')
      await bot.send_message(message.chat.id, message.text)
  
  
  async def on_startup(dp):
      logging.warning(
          'Starting connection. ')
      await bot.set_webhook(WEBHOOK_URL,drop_pending_updates=True)
  
  
  async def on_shutdown(dp):
      logging.warning('Bye! Shutting down webhook connection')
  
  
  def main():
      logging.basicConfig(level=logging.INFO)
      start_webhook(
          dispatcher=dp,
          webhook_path=WEBHOOK_PATH,
          skip_updates=True,
          on_startup=on_startup,
          host=WEBAPP_HOST,
          port=WEBAPP_PORT,
      )
  