From b140ebd1494af7963de12532ee3a4d1f3c6b449b Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Sat, 30 Jan 2021 10:56:58 +0800 Subject: [PATCH] :bug: fix wrong data in CQ:share #170 --- nonebot/adapters/cqhttp/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot/adapters/cqhttp/message.py b/nonebot/adapters/cqhttp/message.py index ce1190c8..07c463c5 100644 --- a/nonebot/adapters/cqhttp/message.py +++ b/nonebot/adapters/cqhttp/message.py @@ -177,12 +177,12 @@ class MessageSegment(BaseMessageSegment): def share(url: str = "", title: str = "", content: Optional[str] = None, - img_url: Optional[str] = None) -> "MessageSegment": + image: Optional[str] = None) -> "MessageSegment": return MessageSegment("share", { "url": url, "title": title, "content": content, - "img_url": img_url + "image": image }) @staticmethod