Initial commit

This commit is contained in:
Forden
2020-04-06 00:12:41 +03:00
parent 0f5a395b72
commit af8294ff61
22 changed files with 214 additions and 0 deletions

1
handlers/__init__.py Normal file
View File

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

View File

@@ -0,0 +1,8 @@
from aiogram import Dispatcher
from aiogram.dispatcher.filters import CommandStart
from .start import bot_start
def setup(dp: Dispatcher):
dp.register_message_handler(start, CommandStart())

5
handlers/user/start.py Normal file
View File

@@ -0,0 +1,5 @@
from aiogram import types
async def bot_start(msg: types.Message):
await msg.answer(f'Привет, {msg.from_user.full_name}!')