From aa0d084ea61a0e4ece48133123bf2ab8e8f46143 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 20 Mar 2022 20:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20reformat=20sub=20notice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- defs/subs.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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: