mirror of
https://github.com/marcogll/vanessa_bot_vanity.git
synced 2026-01-14 04:55:35 +00:00
first commit
This commit is contained in:
18
app/modules/ui.py
Normal file
18
app/modules/ui.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from telegram import ReplyKeyboardMarkup
|
||||
|
||||
|
||||
def main_actions_keyboard(is_registered: bool = False) -> ReplyKeyboardMarkup:
|
||||
"""Teclado inferior con comandos directos (un toque lanza el flujo)."""
|
||||
keyboard = []
|
||||
if not is_registered:
|
||||
keyboard.append(["/registro"])
|
||||
|
||||
keyboard.extend([
|
||||
["/vacaciones", "/permiso"],
|
||||
["/links", "/start"],
|
||||
])
|
||||
|
||||
return ReplyKeyboardMarkup(
|
||||
keyboard,
|
||||
resize_keyboard=True,
|
||||
)
|
||||
Reference in New Issue
Block a user