优化了部分代码

This commit is contained in:
Windpicker-owo
2025-07-17 15:12:20 +08:00
parent 835ea24351
commit 367be4e7d7
3 changed files with 15 additions and 11 deletions

View File

@@ -162,7 +162,7 @@ class MessageRecv(Message):
self.has_picid = False
self.is_picid = False
self.is_emoji = False
self.is_voice == True
self.is_voice = True
if isinstance(segment.data, str):
return await get_voice_text(segment.data)
return "[发了一段语音,网卡了加载不出来]"
@@ -247,7 +247,7 @@ class MessageRecvS4U(MessageRecv):
self.has_picid = False
self.is_picid = False
self.is_emoji = False
self.is_voice == True
self.is_voice = True
if isinstance(segment.data, str):
return await get_voice_text(segment.data)
return "[发了一段语音,网卡了加载不出来]"