This commit is contained in:
Andrey Gumirov
2022-05-01 00:57:58 +07:00
parent a968042f6e
commit e1bd7234ed
19 changed files with 329 additions and 39 deletions

13
blueprints/student.py Normal file
View File

@ -0,0 +1,13 @@
from vkwave.bots import DefaultRouter, SimpleBotEvent, simple_bot_message_handler, PayloadContainsFilter, BotEvent
import locales
student_router = DefaultRouter()
@student_router.registrar.with_decorator(PayloadContainsFilter("student"),)
async def student_menu(event: BotEvent):
sevent = SimpleBotEvent(event)
return await sevent.answer(
message=locales.ST_MENU,
keyboard=locales.ST_KB.get_keyboard(),
)