测试音乐信息

This commit is contained in:
liuwei
2025-05-26 15:02:57 +08:00
parent 44be041eac
commit 25a847da10
2 changed files with 5 additions and 5 deletions

View File

@@ -212,7 +212,7 @@ class MusicPlugin(MessagePluginInterface):
res = await bot.send_app_message(wxid=receiver, xml=xml_message, type=0)
self.LOG.info(f"发送音乐消息 res:{res}")
voice_base64 = await self.url_to_base64(play_url)
res = await bot.send_voice_message(wxid=receiver, voice=voice_base64)
res = await bot.send_voice_message(wxid=receiver, voice=voice_base64,format="AMR")
self.LOG.info(f"发送音乐消息 voice res:{res}")
return True