1 parent
6769ed6a6d
commit
f246febe87
1 file changed
+2
-2
+2
-2
@@ -41,7 +41,7 @@ def process_message_callback(
|
|||||||
|
|
||||||
mentions_data = message_data.get("mentions")
|
mentions_data = message_data.get("mentions")
|
||||||
|
|
||||||
if "官方应用指令" not in [mention.get("name") for mention in mentions_data]:
|
if "官方应用指令" not in [mention.get("name") for mention in mentions_data]:
|
||||||
# 忽略@官方应用指令的消息
|
# 忽略@官方应用指令的消息
|
||||||
lark.logger.info("忽略非@官方应用的消息")
|
lark.logger.info("忽略非@官方应用的消息")
|
||||||
return
|
return
|
||||||
@@ -77,7 +77,7 @@ def process_message_callback(
|
|||||||
record["问题概述"] = content_text
|
record["问题概述"] = content_text
|
||||||
record["创建人"] = [{"id": sender_id}]
|
record["创建人"] = [{"id": sender_id}]
|
||||||
|
|
||||||
history_message_data = get_messages(client, message_id, images, cache_dir)
|
history_message_data = get_messages(client, "thread", thread_id, cache_dir)
|
||||||
lark.logger.info(f"history_message_data: {history_message_data}")
|
lark.logger.info(f"history_message_data: {history_message_data}")
|
||||||
|
|
||||||
for image in images:
|
for image in images:
|
||||||
|
|||||||
Reference in new issue
Block a user