This commit is contained in:
jxxghp 2023-06-10 19:51:43 +08:00
parent 99bd8aade3
commit f1006676c7
2 changed files with 6 additions and 2 deletions

View File

@ -297,7 +297,7 @@ class UserMessageChain(ChainBase):
发送媒体列表消息
"""
self.post_medias_message(
title=f"{title}】共找到{total}条相关信息,请回复数字选择对应媒体p: 上一页 n: 下一页)",
title=f"{title}】共找到{total}条相关信息,请回复对应数字选择p: 上一页 n: 下一页)",
items=items,
userid=userid
)
@ -307,7 +307,7 @@ class UserMessageChain(ChainBase):
发送种子列表消息
"""
self.post_torrents_message(
title=f"{title}】共找到{total}条相关信息,请回复数字下载对应资源0: 自动选择 p: 上一页 n: 下一页)",
title=f"{title}】共找到{total}条相关资源,请回复对应数字下载0: 自动选择 p: 上一页 n: 下一页)",
items=items,
userid=userid
)

View File

@ -37,6 +37,10 @@ class Telegram(metaclass=Singleton):
# 记录句柄
self._bot = _bot
@_bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
_bot.reply_to(message, "温馨提示:直接发送名称或`订阅`+名称,搜索或订阅电影、电视剧")
@_bot.message_handler(func=lambda message: True)
def echo_all(message):
RequestUtils(timeout=5).post_res(self._ds_url, json=message.json)