expense-bot/handlers/users/start.py

10 lines
258 B
Python

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):
await message.answer(f"Hello, {message.from_user.username}!")