mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-27 04:49:16 +00:00
yvlu 更换 bot
This commit is contained in:
parent
a29616373c
commit
4f74c53edc
@ -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",
|
||||||
|
4
yvlu.py
4
yvlu.py
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user