mirror of
https://github.com/marcogll/telegram_new_socias.git
synced 2026-01-13 21:25:16 +00:00
feat: Integrate Google Sheets for duplicate chat ID verification and update main actions keyboard logic
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
from telegram import ReplyKeyboardMarkup
|
||||
|
||||
|
||||
def main_actions_keyboard() -> 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(["/welcome"])
|
||||
|
||||
keyboard.extend([
|
||||
["/vacaciones", "/permiso"],
|
||||
["/links", "/start"],
|
||||
])
|
||||
|
||||
return ReplyKeyboardMarkup(
|
||||
[
|
||||
["/welcome"],
|
||||
["/vacaciones", "/permiso"],
|
||||
["/links", "/start"],
|
||||
],
|
||||
keyboard,
|
||||
resize_keyboard=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user