其他场景使用。
This commit is contained in:
@@ -211,10 +211,6 @@ class MusicPlugin(MessagePluginInterface):
|
||||
self.LOG.info(f"发送音乐消息:{xml_message}")
|
||||
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
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user