Drincann / Mirai-js

运行在 Node.js、浏览器下,基于 mirai-api-http 的 QQ 机器人开发框架。
https://mirai-js-drincann.vercel.app
GNU Affero General Public License v3.0
252 stars 31 forks source link

bug: 发送的语音消息在 pc 客户端无法正常播放 #222

Closed Drincann closed 2 years ago

Drincann commented 2 years ago

如何复现:

bot.sendMessage({
    friend: 1019933576,
    message: new Message().addVoiceId(
        (await bot.uploadVoice({ type: 'friend', filename: './1.mp3' }))?.voiceId
    ),
})

问题: 语音消息在 pc 端显示损坏,无法播放,在移动端正常。

版本:

  23:13:19 [INFO] iTXTech Mirai Console Loader version 2.1.0-71ec418
  23:13:19 [INFO] https://github.com/iTXTech/mirai-console-loader
  23:13:19 [INFO] This program is licensed under GNU AGPL v3
  23:13:22 [INFO] Mirai Console Loader Announcement:
Mirai Console Loader 公告栏

如果在图片上传的时候遇到问题请与我们联系 (需要提供图片文件源本)
`- 如 Unsupported image type for ExternalResource *
`  considering use gif/png/bmp/jpg format.
`- Tracker: https://github.com/mamoe/mirai/issues/new/choose

常用资源整合
`- https://mirai.mamoe.net/topic/653

MCL 已推出 2.1.0,更好的支持 Mirai 2.11 的插件系统,建议更新。

  23:13:22 [INFO] Verifying "net.mamoe:mirai-console" v2.12.1
  23:13:22 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.12.1
  23:13:22 [INFO] Verifying "net.mamoe:mirai-core-all" v2.12.1
  23:13:22 [INFO] Verifying "org.itxtech:mcl-addon" v2.0.2
Drincann commented 2 years ago

fixed v2.8.4