first commit

This commit is contained in:
Marco Gallegos
2025-12-22 22:47:33 -06:00
commit 36b7154c6e
23 changed files with 2713 additions and 0 deletions

18
app/modules/ui.py Normal file
View 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,
)