mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
update post
This commit is contained in:
parent
f2e6bea108
commit
b15523b52c
@ -8,7 +8,7 @@ class Post:
|
|||||||
|
|
||||||
target_type: str
|
target_type: str
|
||||||
text: str
|
text: str
|
||||||
url: str
|
url: Optional[str]
|
||||||
target_name: Optional[str] = None
|
target_name: Optional[str] = None
|
||||||
compress: bool = False
|
compress: bool = False
|
||||||
override_use_pic: Optional[bool] = None
|
override_use_pic: Optional[bool] = None
|
||||||
@ -33,7 +33,7 @@ class Post:
|
|||||||
msgs.append(self.url)
|
msgs.append(self.url)
|
||||||
else:
|
else:
|
||||||
if self.url:
|
if self.url:
|
||||||
text += '详情: {}'.format(self.url)
|
text += ' \n详情: {}'.format(self.url)
|
||||||
msgs.append(text)
|
msgs.append(text)
|
||||||
for pic in self.pics:
|
for pic in self.pics:
|
||||||
msgs.append("[CQ:image,file={url}]".format(url=pic))
|
msgs.append("[CQ:image,file={url}]".format(url=pic))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user