diff --git a/defs/subs.py b/defs/subs.py index 50b7418..a4e2f29 100644 --- a/defs/subs.py +++ b/defs/subs.py @@ -10,7 +10,7 @@ from defs.source import from_list_to_name from defs.utils import Module subs_msg = """ -{} 有新的更新! +{}({})有新的更新! 版本:{} 更新时间:{} @@ -51,7 +51,8 @@ def gen_subs_msg(cid: int) -> str: async def send_subs_msg(cid: int, data: Module, link: str): return await app.send_message(cid, - subs_msg.format(data.name, data.latestRelease, data.updatedAt), + subs_msg.format(data.name, data.description, + data.latestRelease, data.updatedAt), reply_markup=gen_subs_button(data, link)) @@ -67,7 +68,8 @@ async def send_to_subscribes(data: Module): await send_subs_msg(i, data, link) except ButtonUrlInvalid: print(f"Send button error") - await app.send_message(i, subs_msg.format(data.name, data.latestRelease, data.updatedAt), ) + await app.send_message(i, subs_msg.format(data.name, data.description, + data.latestRelease, data.updatedAt), ) except BadRequest: users.remove(i) except Exception as e: