Giter Club home page Giter Club logo

Comments (8)

whitechi73 avatar whitechi73 commented on July 20, 2024

举个例子

from openshamrock.

whitechi73 avatar whitechi73 commented on July 20, 2024

テスト(测试):

  • 发送消息ID为0的消息A
  • 发送回复消息A的消息B(reply元素中的id指向消息A)
  • 发送回复消息A的消息C(reply元素中的id指向消息A)

无法复现你的问题。

from openshamrock.

fuqiuluo avatar fuqiuluo commented on July 20, 2024

发送消息然后其返回的MessageId不可靠是吗?

from openshamrock.

fuqiuluo avatar fuqiuluo commented on July 20, 2024

发送消息然后其返回的MessageId不可靠是吗?

是的,会对应不上,在撤回消息的时候也会有问题

sk的日志里面会出现,没有映射的警告

看了一下,QQ内部设计有问题,Bot发送了消息A(QQ内部接口说这条消息的seq是108),然而实际上这个seq=109,seq不可信导致映射关系有问题。

from openshamrock.

fuqiuluo avatar fuqiuluo commented on July 20, 2024

发送消息然后其返回的MessageId不可靠是吗?

是的,会对应不上,在撤回消息的时候也会有问题
sk的日志里面会出现,没有映射的警告

看了一下,QQ内部设计有问题,Bot发送了消息A(QQ内部接口说这条消息的seq是108),然而实际上这个seq=109,seq不可信导致映射关系有问题。

因为这个问题是qq内的问题,回复消息id问题还能解决吗,这个qq层面sk因为干涉不到了吧,感觉这个问题点解决有点悬

应该可以解决,白池还没有下课 下课了我去找她。

from openshamrock.

fuqiuluo avatar fuqiuluo commented on July 20, 2024

测试结果如下:
来自接口onAddSendMsg所提供的msgSeq并不可靠,其数据无法用于构建映射关系。

需要onAddSendMsg触发后,使用其msgId调用接口getMsgByMsgId获取正确的消息,其中如果消息发送返回包未成功_返回/获取/解析_,仍旧无法获取正确的msgSeq,需要实现一个字段保存某个确切msgId的消息是否已经成功发送了。

from openshamrock.

Simplxss avatar Simplxss commented on July 20, 2024

测试结果如下: 来自接口onAddSendMsg所提供的msgSeq并不可靠,其数据无法用于构建映射关系。

需要onAddSendMsg触发后,使用其msgId调用接口getMsgByMsgId获取正确的消息,其中如果消息发送返回包未成功_返回/获取/解析_,仍旧无法获取正确的msgSeq,需要实现一个字段保存某个确切msgId的消息是否已经成功发送了。

我之前就提到过这个问题的 发消息返回的msgSeq似乎总是比实际少1 msgId和回复时给的不一致 没什么特别好的办法解决 回头看看其他协议的实现吧

from openshamrock.

JUST-HK416D avatar JUST-HK416D commented on July 20, 2024

一样遇到该问题,发送消息后响应的message_id和实际的id不一致

from openshamrock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.