mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 07:47:39 +00:00
antisticker fix a bug'
This commit is contained in:
parent
147a05fa45
commit
63fb13241f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user