Добавил базовые handlers

This commit is contained in:
yepiwt 2021-01-03 01:24:25 +03:00
parent 12da4c2aab
commit 0cb6729e0c
No known key found for this signature in database
GPG Key ID: 5253B9F04F58780E
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1 @@
from . import default

View File

@ -0,0 +1,6 @@
from aiogram import Dispatcher
from .start import start_cmd
def setup(dp: Dispatcher):
dp.register_message_handler(start_cmd, commands=['start'])

View File

@ -0,0 +1,7 @@
from aiogram.types import Message
from loguru import logger
async def start_cmd(msg: Message):
logger.info(f"{msg.from_user.full_name} send /start")
await msg.answer("Basic reply")