Skip to content

Commit 666fb68

Browse files
committed
feat: upgrade python-telegram-bot to 22.7 to enable colored InlineKeyboardButtons
1 parent 2dea820 commit 666fb68

4 files changed

Lines changed: 12 additions & 11 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)

handlers/groups.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ async def suggest_listable(update: Update, context: ContextTypes.DEFAULT_TYPE, l
6363

6464
keyboard = [
6565
[
66-
InlineKeyboardButton(text="Aceptar", callback_data=f"Listable|{group_id}|1"),
67-
InlineKeyboardButton(text="Rechazar", callback_data=f"Listable|{group_id}|0")
66+
InlineKeyboardButton(text="Aceptar", callback_data=f"Listable|{group_id}|1", style="success"),
67+
InlineKeyboardButton(text="Rechazar", callback_data=f"Listable|{group_id}|0", style="danger")
6868
]
6969
]
7070
reply_markup = InlineKeyboardMarkup(keyboard)
@@ -110,8 +110,8 @@ async def agregar(update: Update, context: ContextTypes.DEFAULT_TYPE, grouptype,
110110
group_id = group.id
111111
keyboard = [
112112
[
113-
InlineKeyboardButton(text="Aceptar", callback_data=f"Listable|{group_id}|1"),
114-
InlineKeyboardButton(text="Rechazar", callback_data=f"Listable|{group_id}|0")
113+
InlineKeyboardButton(text="Aceptar", callback_data=f"Listable|{group_id}|1", style="success"),
114+
InlineKeyboardButton(text="Rechazar", callback_data=f"Listable|{group_id}|0", style="danger")
115115
]
116116
]
117117
reply_markup = InlineKeyboardMarkup(keyboard)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies = [
1010
"google-cloud-logging>=3.15.0",
1111
"icalevents",
1212
"psycopg2-binary",
13-
"python-telegram-bot[webhooks]==22.0",
13+
"python-telegram-bot[webhooks]>=22.7",
1414
"pytz",
1515
"requests",
1616
"sqlalchemy",

uv.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)