mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-24 21:53:36 +00:00
fuckmessage 修复没有部分消息检查失败的问题
This commit is contained in:
parent
cb5714addd
commit
fbe23feb4b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user