Initial commit
This commit is contained in:
1
handlers/__init__.py
Normal file
1
handlers/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import user
|
||||
8
handlers/user/__init__.py
Normal file
8
handlers/user/__init__.py
Normal 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
5
handlers/user/start.py
Normal 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}!')
|
||||
Reference in New Issue
Block a user