Moved app part to web package

This commit is contained in:
Alexey Sokolov
2022-02-10 17:21:47 +03:00
parent 125198a0e2
commit 0c83713a17
6 changed files with 65 additions and 30 deletions

View File

@@ -1,4 +1,5 @@
from aiogram import Bot, Dispatcher
from aiogram.dispatcher.webhook import SendMessage
from aiogram.contrib.middlewares.logging import LoggingMiddleware
from config import config
@@ -9,4 +10,9 @@ telegram_dispatcher = Dispatcher(telegram_bot)
telegram_dispatcher.middleware.setup(LoggingMiddleware())
@telegram_dispatcher.message_handler(commands=['test'])
async def test_telegram(message):
return SendMessage(message.chat.id, 'passed')
__all__ = ('telegram_bot', telegram_dispatcher)