From 4f74c53edc5538e2925ecd25fae9144f76e4b81d Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 6 Mar 2022 23:26:54 +0800 Subject: [PATCH] =?UTF-8?q?yvlu=20=E6=9B=B4=E6=8D=A2=20bot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- list.json | 2 +- yvlu.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/list.json b/list.json index 8639ad9..8211e54 100644 --- a/list.json +++ b/list.json @@ -682,7 +682,7 @@ }, { "name": "yvlu", - "version": "1.214", + "version": "1.22", "section": "chat", "maintainer": "xtaodada", "size": "10.4 kb", diff --git a/yvlu.py b/yvlu.py index ff3eea8..bcd4685 100644 --- a/yvlu.py +++ b/yvlu.py @@ -123,14 +123,14 @@ async def yv_lu(context): reply = context else: return await context.edit('你需要回复一条消息或者输入一串字符。') - async with bot.conversation('QuotLyBot') as conversation: + async with bot.conversation('PagerMaid_QuotLy_bot') as conversation: try: send_for = await reply.forward_to(conversation.chat_id) except YouBlockedUserError: if await context.client(UnblockRequest(id=conversation.chat_id)): send_for = await reply.forward_to(conversation.chat_id) else: - return await context.edit("请先解封 @QuotLyBot ") + return await context.edit("请先解封 @PagerMaid_QuotLy_bot ") except ForbiddenError: return await context.edit("无权限转发消息。") except FloodWaitError: