fix: add parse_mode param to edit_message, status messages use plain text

This commit is contained in:
2026-07-13 08:23:42 +08:00
parent 01504e6295
commit bd5b824a6a
3 changed files with 4 additions and 4 deletions

View File

@@ -66,10 +66,10 @@ def send_thinking(tg_cfg: TelegramConfig, chat_id: str, text: str = "💭 思考
def edit_message(tg_cfg: TelegramConfig, chat_id: str, msg_id: int,
text: str, reply_markup: dict = None):
text: str, reply_markup: dict = None, parse_mode: str = "MarkdownV2"):
payload = {
"chat_id": chat_id, "message_id": msg_id,
"text": text, "parse_mode": "MarkdownV2",
"text": text, "parse_mode": parse_mode,
}
if reply_markup:
payload["reply_markup"] = reply_markup