mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-28 18:50:52 +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):
|
async for message in context.client.iter_messages(context.chat_id):
|
||||||
if count_buffer == 200:
|
if count_buffer == 200:
|
||||||
break
|
break
|
||||||
if context.arguments in message.text:
|
if message.text:
|
||||||
messages.append(message)
|
if context.arguments in message.text:
|
||||||
count += 1
|
messages.append(message)
|
||||||
|
count += 1
|
||||||
if len(messages) > 50:
|
if len(messages) > 50:
|
||||||
try:
|
try:
|
||||||
await context.client.delete_messages(input_chat, messages)
|
await context.client.delete_messages(input_chat, messages)
|
||||||
|
Loading…
Reference in New Issue
Block a user