mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 15:22:20 +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):
|
async def del_msg(context, t_lim):
|
||||||
await asyncio.sleep(t_lim)
|
await asyncio.sleep(t_lim)
|
||||||
|
try:
|
||||||
await context.delete()
|
await context.delete()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
async def send_reply(chat_id, reply_msg, context):
|
async def send_reply(chat_id, reply_msg, context):
|
||||||
chat = context.chat
|
chat = context.chat
|
||||||
|
Loading…
Reference in New Issue
Block a user