Skip to content

Commit 0bf59a4

Browse files
committed
feat: add green and red colors to accept/reject buttons for telegram admin menus
1 parent b184e21 commit 0bf59a4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

bot_logic.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ async def suggest_listable(update: Update, context: ContextTypes.DEFAULT_TYPE, l
148148
keyboard = [
149149
[
150150
InlineKeyboardButton(
151-
text="Aceptar", callback_data=f"Listable|{group_id}|1"),
151+
text="Aceptar", callback_data=f"Listable|{group_id}|1", style="success"),
152152
InlineKeyboardButton(
153-
text="Rechazar", callback_data=f"Listable|{group_id}|0")
153+
text="Rechazar", callback_data=f"Listable|{group_id}|0", style="danger")
154154
]
155155
]
156156
reply_markup = InlineKeyboardMarkup(keyboard)
@@ -348,9 +348,9 @@ async def agregar(update: Update, context: ContextTypes.DEFAULT_TYPE, grouptype,
348348
keyboard = [
349349
[
350350
InlineKeyboardButton(
351-
text="Aceptar", callback_data=f"Listable|{group_id}|1"),
351+
text="Aceptar", callback_data=f"Listable|{group_id}|1", style="success"),
352352
InlineKeyboardButton(
353-
text="Rechazar", callback_data=f"Listable|{group_id}|0")
353+
text="Rechazar", callback_data=f"Listable|{group_id}|0", style="danger")
354354
]
355355
]
356356
reply_markup = InlineKeyboardMarkup(keyboard)
@@ -392,8 +392,8 @@ async def sugerirNoticia(update: Update, context: ContextTypes.DEFAULT_TYPE):
392392
noticia_id = noticia.id
393393
keyboard = [
394394
[
395-
InlineKeyboardButton("Aceptar", callback_data=f"Noticia|{noticia_id}|1"),
396-
InlineKeyboardButton("Rechazar", callback_data=f"Noticia|{noticia_id}|0")
395+
InlineKeyboardButton("Aceptar", callback_data=f"Noticia|{noticia_id}|1", style="success"),
396+
InlineKeyboardButton("Rechazar", callback_data=f"Noticia|{noticia_id}|0", style="danger")
397397
]
398398
]
399399
reply_markup = InlineKeyboardMarkup(keyboard)

0 commit comments

Comments
 (0)