mirror of
https://gitflic.ru/project/maks1ms/ocab.git
synced 2025-03-15 06:46:00 +03:00
15 lines
366 B
Python
15 lines
366 B
Python
|
from aiogram import F, Router
|
||
|
|
||
|
from ocab_core.modules_system.public_api import register_router
|
||
|
|
||
|
from .handlers import get_chat_info, get_user_info
|
||
|
|
||
|
|
||
|
def module_init():
|
||
|
router = Router()
|
||
|
|
||
|
router.message.register(get_user_info, F.text.startswith("/info"))
|
||
|
router.message.register(get_chat_info, F.text.startswith("/chatinfo"))
|
||
|
|
||
|
register_router(router)
|