mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-29 02:17:20 +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)
|
@listener(incoming=True, ignore_edited=True)
|
||||||
async def auto_remove_sticker(context):
|
async def auto_remove_sticker(context):
|
||||||
""" Event handler to remove stickers. """
|
""" Event handler to remove stickers. """
|
||||||
|
try:
|
||||||
reply = await context.get_reply_message()
|
reply = await context.get_reply_message()
|
||||||
|
except:
|
||||||
|
return
|
||||||
if reply:
|
if reply:
|
||||||
if reply.sender:
|
if reply.sender:
|
||||||
reply_user_id = reply.sender.id
|
reply_user_id = reply.sender.id
|
||||||
|
Loading…
Reference in New Issue
Block a user