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

This commit is contained in:
earthjasonlin committed 2026-07-13 08:23:42 +08:00
1 parent 01504e6295
commit bd5b824a6a
3 files changed
+4 -4

No files matched your search

+2 -2
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.