channel-block-tg/handlers/users/start.py
Kostiantyn Kriuchkov eab45a5088 Deleted mysql support, redis password, webhook, keyboard constructors, filters, loguru.
Added support of decorators in handlers
Added function to notify admins on startup
2020-04-14 01:50:57 +03:00

10 lines
263 B
Python

from aiogram import types
from aiogram.dispatcher.filters.builtin import CommandStart
from bot import dp
@dp.message_handler(CommandStart())
async def bot_start(message: types.Message):
await message.answer(f'Привет, {message.from_user.full_name}!')