0
0
mirror of https://gitflic.ru/project/maks1ms/ocab.git synced 2025-03-14 22:33:48 +03:00
ocab/src/ocab_modules/standard/welcome/routers.py
2024-07-10 11:28:42 +03:00

13 lines
443 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"
)