mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 18:07:48 +00:00
antisticker 修复错误 (#188)
This commit is contained in:
parent
5611cb79e9
commit
147a05fa45
@ -20,8 +20,11 @@ async def auto_remove_sticker(context):
|
|||||||
if context.chat_id > 0:
|
if context.chat_id > 0:
|
||||||
return
|
return
|
||||||
if context.sender:
|
if context.sender:
|
||||||
|
try:
|
||||||
if context.sender.bot:
|
if context.sender.bot:
|
||||||
return
|
return
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user