测试音乐信息
This commit is contained in:
@@ -212,6 +212,7 @@ class MusicPlugin(MessagePluginInterface):
|
|||||||
res = await bot.send_app_message(wxid=receiver, xml=xml_message, type=0)
|
res = await bot.send_app_message(wxid=receiver, xml=xml_message, type=0)
|
||||||
self.LOG.info(f"发送音乐消息 res:{res}")
|
self.LOG.info(f"发送音乐消息 res:{res}")
|
||||||
voice_base64 = await self.url_to_base64(play_url)
|
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")
|
res = await bot.send_voice_message(wxid=receiver, voice=voice_base64, format="MP3")
|
||||||
self.LOG.info(f"发送音乐消息 voice res:{res}")
|
self.LOG.info(f"发送音乐消息 voice res:{res}")
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user