Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动一段时间以后,只能接收消息,qq收不到回复的消息 #2848

Open
JamesLee66 opened this issue Mar 29, 2024 · 4 comments

Comments

@JamesLee66
Copy link

问题描述

问几个问题以后,貌似回复就失效了,日志看着发送成功了,但是群里收不到回复的消息
版本:2.16.0
登录方式:扫码
平台:ANDROID_WATCH
心跳策略:HeartbeatStrategy.REGISTER
image

复现

private static void sendMessage(GroupMessageEvent event) {
MessageChain message = event.getMessage();
String receiveMsg = message.contentToString();
if(!receiveMsg.startsWith("bot") && !receiveMsg.startsWith("@" + Test.QQ)) {
return;
}
MessageChain chain = new MessageChainBuilder()
.append(new At(event.getSender().getId())) // at 发送者
.append(new PlainText(" Bot思考中...")) // 回复的消息
.build();
event.getGroup().sendMessage(chain);
}

mirai-core 版本

2.16.0

bot-protocol

ANDROID_WATCH

其他组件版本

No response

系统日志

No response

网络日志

No response

补充信息

No response

@oneadms
Copy link

oneadms commented May 6, 2024

+1

@rainlodo
Copy link

ANDROID_WATCH 协议是这样的,每天只能回复一段时间的群聊消息

@MrY-Cat
Copy link
Contributor

MrY-Cat commented Jun 19, 2024

手表协议扫码登录的老毛病了,建议换ANDROID_PAD协议并用签名

@JamesLee66
Copy link
Author

手表协议扫码登录的老毛病了,建议换ANDROID_PAD协议并用签名

大佬 有教程吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants