mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 02:35:34 +00:00
用 try 修复信息删除后再 delete 造成的报错
This commit is contained in:
parent
c260326e28
commit
c2182181da
@ -94,7 +94,10 @@ def get_rule(chat_id, rule_type, rule_index):
|
||||
|
||||
async def del_msg(context, t_lim):
|
||||
await asyncio.sleep(t_lim)
|
||||
await context.delete()
|
||||
try:
|
||||
await context.delete()
|
||||
except:
|
||||
pass
|
||||
|
||||
async def send_reply(chat_id, reply_msg, context):
|
||||
chat = context.chat
|
||||
|
Loading…
Reference in New Issue
Block a user