Fixed keyboard and added man page
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
19
blueprints/man.py
Normal file
19
blueprints/man.py
Normal file
@ -0,0 +1,19 @@
|
||||
from vkwave.bots import DefaultRouter, SimpleBotEvent, simple_bot_message_handler, PayloadContainsFilter, BotEvent, \
|
||||
EventTypeFilter
|
||||
from vkwave.types.bot_events import BotEventType
|
||||
|
||||
import locales
|
||||
|
||||
man_router = DefaultRouter()
|
||||
|
||||
|
||||
@man_router.registrar.with_decorator(
|
||||
EventTypeFilter(BotEventType.MESSAGE_NEW.value),
|
||||
PayloadContainsFilter("man"),
|
||||
)
|
||||
async def man_menu(event: BotEvent):
|
||||
sevent = SimpleBotEvent(event)
|
||||
return await sevent.answer(
|
||||
message=locales.MAN,
|
||||
keyboard=locales.MAN_KB.get_keyboard(),
|
||||
)
|
Reference in New Issue
Block a user