add message 1 and message 2 with logs to check

This commit is contained in:
Dmitry Afanasyev 2022-08-14 14:15:38 +03:00
parent 8cd466fc91
commit 0f1635f6c8

View File

@ -5,7 +5,6 @@ from aiogram.contrib.middlewares.logging import LoggingMiddleware
from aiogram.dispatcher import Dispatcher
from aiogram.dispatcher.webhook import SendMessage
from aiogram.utils.callback_data import CallbackData
from app.core.logger import logger
from core.parse_web import configure_firefox_driver, download_gecko_driver, parse_site
from settings import API_TOKEN
@ -38,7 +37,7 @@ def get_keyboard() -> types.InlineKeyboardMarkup:
@dispatcher.message_handler(commands=['command1'])
async def chat_id(message: types.Message) -> None:
async def send_message_1(message: types.Message) -> None:
logger.info("command 1 started")
await asyncio.sleep(15)
@ -47,7 +46,7 @@ async def chat_id(message: types.Message) -> None:
@dispatcher.message_handler(commands=['command2'])
async def chat_id(message: types.Message) -> None:
async def send_message_2(message: types.Message) -> None:
logger.info("command 2 started")
await asyncio.sleep(15)