Skip to content

Commit a3de563

Browse files
committed
feat: add color styles to accept/reject buttons in sugerirNoticia command
1 parent 9a1ec7d commit a3de563

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

handlers/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ async def sugerirNoticia(update: Update, context: ContextTypes.DEFAULT_TYPE):
5555
noticia_id = noticia.id
5656
keyboard = [
5757
[
58-
InlineKeyboardButton("Aceptar", callback_data=f"Noticia|{noticia_id}|1"),
59-
InlineKeyboardButton("Rechazar", callback_data=f"Noticia|{noticia_id}|0")
58+
InlineKeyboardButton("Aceptar", callback_data=f"Noticia|{noticia_id}|1", style="success"),
59+
InlineKeyboardButton("Rechazar", callback_data=f"Noticia|{noticia_id}|0", style="danger")
6060
]
6161
]
6262
reply_markup = InlineKeyboardMarkup(keyboard)

0 commit comments

Comments
 (0)