From bd2dbe5b632868cf453fda1bfe23fd189e769298 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 3 Jun 2023 14:21:47 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=BD=AC=E5=8F=91=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=94=AF=E6=8C=81=E9=9D=9E=E6=96=87=E6=9C=AC=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/platform/qq.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/model/platform/qq.py b/model/platform/qq.py index d9e27a587..c4a3a3901 100644 --- a/model/platform/qq.py +++ b/model/platform/qq.py @@ -72,18 +72,16 @@ class QQ: image_num += 1 if plain_text_len > self.cc.get('qq_forward_threshold', 200) or image_num > 1: # 删除At - _t = "" for i in res: - if isinstance(i, Plain): - _t += i.text + if isinstance(i, At): + res.remove(i) node = Node(res) - node.content = _t + # node.content = res node.uin = source.self_id - print(source) node.name = f"To {source.sender.nickname}:" node.time = int(time.time()) - # print(node) - nodes = [node] + print(node) + nodes=[node] await self.client.sendGroupForwardMessage(source.group_id, nodes) return await self.client.sendGroupMessage(source.group_id, res)