mirror of
				https://gitflic.ru/project/alt-gnome/karkas.git
				synced 2025-11-04 15:21:23 +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)
 |