mirror of
https://gitflic.ru/project/maks1ms/ocab.git
synced 2025-03-14 22:33:48 +03:00
13 lines
443 B
Python
13 lines
443 B
Python
from aiogram import F, Router
|
||
|
||
from src.ocab_modules.standard.welcome.handlers import check_new_user
|
||
|
||
router = Router()
|
||
|
||
# Если в чат пришел новый пользователь
|
||
router.message.register(check_new_user, F.new_chat_members.exists())
|
||
# Ловин колбеки от кнопок с callback_data=f"check_math_task_true"
|
||
router.callback_query.register(
|
||
check_new_user, F.callback_data == "check_math_task_true"
|
||
)
|