ProtobufBot / pbbot-spring-boot-starter

QQ机器人的spring boot starter,推荐基于这个进行快速开发。本项目使用MIT协议,如果Client选择Mirai请使用AGPLv3协议。
MIT License
66 stars 16 forks source link

求助:在发送消息后何如判断其是否发送成功 #6

Open E1xP opened 2 years ago

E1xP commented 2 years ago

在Spring-CQ中,发送消息后将返回apiData,可利用其中的getStatus与getRetcode判断其是否成功。 但在pbbot-spring-boot-starter中,并无相应设计。请问从Spring-CQ切换带到pbbot-spring-boot-starter后,如何实现对发送消息的发送情况确认。(若发送失败其情况是什么) 谢谢。

xiaomujin commented 1 year ago

在Spring-CQ中,发送消息后将返回apiData,可利用其中的getStatus与getRetcode判断其是否成功。 但在pbbot-spring-boot-starter中,并无相应设计。请问从Spring-CQ切换带到pbbot-spring-boot-starter后,如何实现对发送消息的发送情况确认。(若发送失败其情况是什么) 谢谢。

判断返回的msgid

E1xP commented 1 year ago

判断返回的msgid

Thx