fix message title

This commit is contained in:
jxxghp 2023-08-05 17:03:44 +08:00
parent 1338ce3fc1
commit b92154071b

View File

@ -321,9 +321,13 @@ class MessageChain(ChainBase):
""" """
发送媒体列表消息 发送媒体列表消息
""" """
if total > self._page_size:
title = f"{title}】共找到{total}条相关信息请回复对应数字选择p: 上一页 n: 下一页)"
else:
title = f"{title}】共找到{total}条相关信息,请回复对应数字选择"
self.post_medias_message(Notification( self.post_medias_message(Notification(
channel=channel, channel=channel,
title=f"{title}】共找到{total}条相关信息请回复对应数字选择p: 上一页 n: 下一页)", title=title,
userid=userid userid=userid
), medias=items) ), medias=items)
@ -332,8 +336,12 @@ class MessageChain(ChainBase):
""" """
发送种子列表消息 发送种子列表消息
""" """
if total > self._page_size:
title = f"{title}】共找到{total}条相关资源请回复对应数字下载0: 自动选择 p: 上一页 n: 下一页)"
else:
title = f"{title}】共找到{total}条相关资源请回复对应数字下载0: 自动选择)"
self.post_torrents_message(Notification( self.post_torrents_message(Notification(
channel=channel, channel=channel,
title=f"{title}】共找到{total}条相关资源请回复对应数字下载0: 自动选择 p: 上一页 n: 下一页)", title=title,
userid=userid userid=userid
), torrents=items) ), torrents=items)