expense-bot/handlers/users/start.py

10 lines
258 B
Python
Raw Normal View History

2022-04-01 21:02:03 +02:00
from aiogram import types
from aiogram.dispatcher.filters.builtin import CommandStart
from loader import dp
@dp.message_handler(CommandStart())
async def bot_start(message: types.Message):
2022-04-01 22:23:02 +02:00
await message.answer(f"Hello, {message.from_user.username}!")