mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
🐛 fix wrong data in CQ:share #170
This commit is contained in:
parent
5f6a2fffc5
commit
b140ebd149
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user