测试音乐信息

This commit is contained in:
liuwei
2025-05-26 15:12:27 +08:00
parent 56c5a0e3c5
commit 2ec96dcc9c

View File

@@ -212,6 +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)
self.LOG.debug(f"voice_base64:{voice_base64}")
res = await bot.send_voice_message(wxid=receiver, voice=voice_base64, format="MP3")
self.LOG.info(f"发送音乐消息 voice res:{res}")
return True