antisticker 修复错误 (#188)

This commit is contained in:
Xtao_dada 2021-08-22 15:11:25 +08:00 committed by GitHub
parent 5611cb79e9
commit 147a05fa45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

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