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:
return
if context.sender:
if context.sender.bot:
return
try:
if context.sender.bot:
return
except AttributeError:
pass
else:
return

View File

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