-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
获取群语音下载链接失败 #2269
Labels
Milestone
Comments
发送语音用的是什么客户端 windows pc还是什么其他的 |
我这边是用的Android TIM |
|
同序列化
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
问题描述
简要描述一下,现在代码逻辑是先从MessageEvent中通过event.getMessage()方法获得到MessageChain,之后再通过chain.get(OnlineAudio.Key)获得到OnlineAudio的对象,但是通过(audio).getUrlForDownload()拿下载URL的时候如果是群语音就会报错,拿不到,但是如果是私聊发送的语音就可以拿到URL,下载下来解码之后也可以正常播放
直接调用报错的部分
其中SimpleMsg是自己对消息信息的二次封装,涉及的部分代码如下
只有群聊中的语音信息会出现问题
复现
mirai-core 版本
2.13.0-RC
bot-protocol
ANDROID_PHONE
其他组件版本
No response
系统日志
网络日志
No response
补充信息
No response
The text was updated successfully, but these errors were encountered: