Просмотр исходного кода

内容: 修复机器人reply接口多余receive_id_type参数

Sisyphus Agent 3 месяцев назад
Родитель
Сommit
b4d72298cc
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      运营文案/xhs_bot_listener.py

+ 4 - 2
运营文案/xhs_bot_listener.py

@@ -89,10 +89,12 @@ class FeishuChat:
         return self._token
         return self._token
 
 
     def reply_text(self, message_id: str, text: str):
     def reply_text(self, message_id: str, text: str):
-        """回复某一 message_id(线程内回复)。"""
+        """回复某一 message_id(线程内回复)。
+
+        注意:reply 接口不需要 receive_id_type(消息 ID 已在 URL 中指定)。
+        """
         url = FEISHU_REPLY_URL.format(msg_id=message_id)
         url = FEISHU_REPLY_URL.format(msg_id=message_id)
         body = {
         body = {
-            "receive_id_type": "open_id",
             "msg_type": "text",
             "msg_type": "text",
             "content": json.dumps({"text": text}, ensure_ascii=False),
             "content": json.dumps({"text": text}, ensure_ascii=False),
         }
         }