antisticker fix a bug'

This commit is contained in:
xtaodada 2021-08-23 21:17:33 +08:00
parent 147a05fa45
commit 63fb13241f
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,10 @@ from pagermaid.listener import listener
@listener(incoming=True, ignore_edited=True)
async def auto_remove_sticker(context):
""" Event handler to remove stickers. """
reply = await context.get_reply_message()
try:
reply = await context.get_reply_message()
except:
return
if reply:
if reply.sender:
reply_user_id = reply.sender.id

View File

@ -752,7 +752,7 @@
},
{
"name": "antisticker",
"version": "1.011",
"version": "1.02",
"section": "chat",
"maintainer": "xtaodada",
"size": "0.7 kb",