From 02fcd1b35e84e18467da3063b7eba12b15337435 Mon Sep 17 00:00:00 2001 From: Komorebi <110453675+KomoriDev@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:58:51 +0800 Subject: [PATCH] :pencil2: fix typos in telegram uniseg (#60) --- .../uniseg/adapters/telegram/exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nonebot_plugin_alconna/uniseg/adapters/telegram/exporter.py b/src/nonebot_plugin_alconna/uniseg/adapters/telegram/exporter.py index 0a999c0..5fbd39e 100644 --- a/src/nonebot_plugin_alconna/uniseg/adapters/telegram/exporter.py +++ b/src/nonebot_plugin_alconna/uniseg/adapters/telegram/exporter.py @@ -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)