Improve captioned photos

This commit is contained in:
xzsk2 2021-07-19 13:34:22 +08:00 committed by XYenon
parent aa4d680873
commit 50e81c7455

View File

@ -541,9 +541,10 @@ class GoCQHttp(BaseClient):
msg.file.close()
f.seek(0)
text += m.coolq_code_image_wrapper(f, f.name)
msg.uid = self.coolq_send_message(chat_type[0], chat_type[1], text)
if msg.text:
self.coolq_send_message(chat_type[0], chat_type[1], msg.text)
msg.uid = self.coolq_send_message(chat_type[0], chat_type[1], text + coolq_text_encode(msg.text))
else:
msg.uid = self.coolq_send_message(chat_type[0], chat_type[1], text)
# todo More MsgType Support
elif msg.type is MsgType.Voice:
if not self.can_send_voice: