fix: add parse_mode param to edit_message, status messages use plain text
This commit is contained in:
@@ -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