Skip to content

Commit

Permalink
✏️ fix typos in telegram uniseg
Browse files Browse the repository at this point in the history
  • Loading branch information
KomoriDev committed Jul 22, 2024
1 parent 7254b92 commit f985b57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ async def send_to(self, target: Union[Target, Event], bot: Bot, message: Message
for i in range(0, len(buttons), 9):
rows.append(buts[i : i + 9])
reply_markup = InlineKeyboardMarkup(inline_keyboard=rows)
if rows := message.get("telegram:button_row"):
message = message.exclude("telegram:button_row")
if rows := message.get("$telegram:button_row"):
message = message.exclude("$telegram:button_row")
but_rows = [row.data["buttons"] for row in rows]
if not reply_markup:
reply_markup = InlineKeyboardMarkup(inline_keyboard=but_rows)
Expand Down

0 comments on commit f985b57

Please sign in to comment.