-
群消息上报的消息id是个比较大的数字,有时还会有负数,这个是正常的 这是私聊消息的上报(消息id为28002): {"post_type":"message","message_type":"private","time":1667136401,"self_id":2259113381,"sub_type":"group","message_id":28002,"user_id":2748166392,"message":[{"type":"text","data":{"text":"测试"}}],"raw_message":"测试","font":0,"sender":{"age":0,"group_id":860355679,"nickname":"Saplonily","sex":"unknown","user_id":2748166392},"temp_source":0} 这是群消息的(消息id为861619809): {"post_type":"message","message_type":"group","time":1667136632,"self_id":2259113381,"sub_type":"normal","message":[{"type":"text","data":{"text":"群消息"}}],"message_seq":2086,"raw_message":"群消息","sender":{"age":0,"area":"","card":"这是名片","level":"","nickname":"Saplonily","role":"owner","sex":"unknown","title":"","user_id":2748166392},"anonymous":null,"font":0,"group_id":860355679,"user_id":2748166392,"message_id":861619809} 使用私聊消息上报的消息id(序列号?,28002)传入get_msg api的结果(失败): {"data":null,"msg":"MSG_NOT_FOUND","retcode":100,"status":"failed","wording":"消息不存在"} 使用群消息上报的消息id(861619809)传入get_msg api的结果(成功): {"data":{"group":true,"group_id":860355679,"message":[{"type":"text","data":{"text":"群消息"}}],"message_id":861619809,"message_id_v2":"000000003347fc5f00000826","message_seq":2086,"message_type":"group","real_id":2086,"sender":{"nickname":"这是名片","user_id":2748166392},"time":1667136632},"retcode":0,"status":"ok"} 🤔 是我对消息id有什么误解吗还是什么 |
Beta Was this translation helpful? Give feedback.
Answered by
Saplonily
Oct 31, 2022
Replies: 1 comment
-
貌似 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Saplonily
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
貌似
加了好友时的消息上报才正常点,没加好友的消息上报的id像个序列号
加了好友时就正常了