fix bugs
This commit is contained in:
parent
99bd8aade3
commit
f1006676c7
@ -297,7 +297,7 @@ class UserMessageChain(ChainBase):
|
|||||||
发送媒体列表消息
|
发送媒体列表消息
|
||||||
"""
|
"""
|
||||||
self.post_medias_message(
|
self.post_medias_message(
|
||||||
title=f"【{title}】共找到{total}条相关信息,请回复数字选择对应媒体(p: 上一页 n: 下一页)",
|
title=f"【{title}】共找到{total}条相关信息,请回复对应数字选择(p: 上一页 n: 下一页)",
|
||||||
items=items,
|
items=items,
|
||||||
userid=userid
|
userid=userid
|
||||||
)
|
)
|
||||||
@ -307,7 +307,7 @@ class UserMessageChain(ChainBase):
|
|||||||
发送种子列表消息
|
发送种子列表消息
|
||||||
"""
|
"""
|
||||||
self.post_torrents_message(
|
self.post_torrents_message(
|
||||||
title=f"【{title}】共找到{total}条相关信息,请回复数字下载对应资源(0: 自动选择 p: 上一页 n: 下一页)",
|
title=f"【{title}】共找到{total}条相关资源,请回复对应数字下载(0: 自动选择 p: 上一页 n: 下一页)",
|
||||||
items=items,
|
items=items,
|
||||||
userid=userid
|
userid=userid
|
||||||
)
|
)
|
||||||
|
@ -37,6 +37,10 @@ class Telegram(metaclass=Singleton):
|
|||||||
# 记录句柄
|
# 记录句柄
|
||||||
self._bot = _bot
|
self._bot = _bot
|
||||||
|
|
||||||
|
@_bot.message_handler(commands=['start', 'help'])
|
||||||
|
def send_welcome(message):
|
||||||
|
_bot.reply_to(message, "温馨提示:直接发送名称或`订阅`+名称,搜索或订阅电影、电视剧")
|
||||||
|
|
||||||
@_bot.message_handler(func=lambda message: True)
|
@_bot.message_handler(func=lambda message: True)
|
||||||
def echo_all(message):
|
def echo_all(message):
|
||||||
RequestUtils(timeout=5).post_res(self._ds_url, json=message.json)
|
RequestUtils(timeout=5).post_res(self._ds_url, json=message.json)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user