Spaces:
Runtime error
Runtime error
File size: 413 Bytes
339f372 |
1 2 3 4 5 6 7 8 9 10 |
from typing import Dict, Any
from aiogram.types import Message
from app.config.config import ADMIN_ID
from app.database.requests import check_user_registered
async def admin_check(message: Message, data: Dict[str, Any]) -> bool:
return message.from_user.id in ADMIN_ID
async def registration_check(message: Message, data: Dict[str, Any]) -> bool:
return await check_user_registered(message.from_user.id) |