fuckmessage 修复没有部分消息检查失败的问题

This commit is contained in:
xtaodada 2021-07-28 20:47:21 +08:00
parent cb5714addd
commit fbe23feb4b
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 5 additions and 4 deletions

View File

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

View File

@ -652,7 +652,7 @@
},
{
"name": "fuckmessage",
"version": "1.0",
"version": "1.01",
"section": "chat",
"maintainer": "xtaodada",
"size": "1.3 kb",