Skip to content

Commit 2dea820

Browse files
committed
fix: remove style parameter from InlineKeyboardButton as python-telegram-bot 22.0 does not support it yet
1 parent a3de563 commit 2dea820

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", style="success"),
59-
InlineKeyboardButton("Rechazar", callback_data=f"Noticia|{noticia_id}|0", style="danger")
58+
InlineKeyboardButton("Aceptar", callback_data=f"Noticia|{noticia_id}|1"),
59+
InlineKeyboardButton("Rechazar", callback_data=f"Noticia|{noticia_id}|0")
6060
]
6161
]
6262
reply_markup = InlineKeyboardMarkup(keyboard)

0 commit comments

Comments
 (0)