diff --git a/fuckmessage.py b/fuckmessage.py index 1edb0b0..f31b496 100644 --- a/fuckmessage.py +++ b/fuckmessage.py @@ -19,9 +19,10 @@ async def fuck_message(context): async for message in context.client.iter_messages(context.chat_id): if count_buffer == 200: break - if context.arguments in message.text: - messages.append(message) - count += 1 + if message.text: + if context.arguments in message.text: + messages.append(message) + count += 1 if len(messages) > 50: try: await context.client.delete_messages(input_chat, messages) diff --git a/list.json b/list.json index 3f22ef5..3c6755f 100644 --- a/list.json +++ b/list.json @@ -652,7 +652,7 @@ }, { "name": "fuckmessage", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "1.3 kb",