yvlu 更换 bot

This commit is contained in:
xtaodada 2022-03-06 23:26:54 +08:00
parent a29616373c
commit 4f74c53edc
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 3 deletions

View File

@ -682,7 +682,7 @@
}, },
{ {
"name": "yvlu", "name": "yvlu",
"version": "1.214", "version": "1.22",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "10.4 kb", "size": "10.4 kb",

View File

@ -123,14 +123,14 @@ async def yv_lu(context):
reply = context reply = context
else: else:
return await context.edit('你需要回复一条消息或者输入一串字符。') return await context.edit('你需要回复一条消息或者输入一串字符。')
async with bot.conversation('QuotLyBot') as conversation: async with bot.conversation('PagerMaid_QuotLy_bot') as conversation:
try: try:
send_for = await reply.forward_to(conversation.chat_id) send_for = await reply.forward_to(conversation.chat_id)
except YouBlockedUserError: except YouBlockedUserError:
if await context.client(UnblockRequest(id=conversation.chat_id)): if await context.client(UnblockRequest(id=conversation.chat_id)):
send_for = await reply.forward_to(conversation.chat_id) send_for = await reply.forward_to(conversation.chat_id)
else: else:
return await context.edit("请先解封 @QuotLyBot ") return await context.edit("请先解封 @PagerMaid_QuotLy_bot ")
except ForbiddenError: except ForbiddenError:
return await context.edit("无权限转发消息。") return await context.edit("无权限转发消息。")
except FloodWaitError: except FloodWaitError: