From 0cc5f313810fe1c736279c75507c74aa99da4651 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 19 Aug 2021 17:21:35 +0800 Subject: [PATCH] =?UTF-8?q?antisticker=20=E4=BF=AE=E5=A4=8D=E5=8C=BF?= =?UTF-8?q?=E5=90=8D=E7=AE=A1=E7=90=86=E5=91=98=E5=8F=AF=E4=BB=A5=E5=81=B7?= =?UTF-8?q?=E5=8F=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- antisticker.py | 5 +++-- list.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/antisticker.py b/antisticker.py index e04db45..0866792 100644 --- a/antisticker.py +++ b/antisticker.py @@ -19,8 +19,9 @@ async def auto_remove_sticker(context): return if context.chat_id > 0: return - if context.sender.bot: - return + if context.sender: + if context.sender.bot: + return else: return diff --git a/list.json b/list.json index 2ed2fbd..4177be3 100644 --- a/list.json +++ b/list.json @@ -752,7 +752,7 @@ }, { "name": "antisticker", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "0.7 kb",