diff --git a/deletemsgsfromgrps.py b/deletemsgsfromgrps.py index 24bb0f4..ddbe216 100644 --- a/deletemsgsfromgrps.py +++ b/deletemsgsfromgrps.py @@ -27,6 +27,8 @@ async def dmfg(context: Message) -> None: if dialog.id > 0: continue async for message in context.client.iter_messages(dialog.id, from_user="me"): + if dialog.id == context.chat_id and message.id == context.id: + continue if count_buffer == count: break await message.delete() @@ -42,6 +44,8 @@ async def dmfg(context: Message) -> None: async for dialog in context.client.iter_dialogs(): if dialog.id > 0: async for message in context.client.iter_messages(dialog.id, from_user="me"): + if dialog.id == context.chat_id and message.id == context.id: + continue if count_buffer == count: break await message.delete() diff --git a/list.json b/list.json index 04fb681..61f3baf 100644 --- a/list.json +++ b/list.json @@ -372,7 +372,7 @@ }, { "name": "deletemsgsfromgrps", - "version": "1.00", + "version": "1.01", "section": "chat", "maintainer": "Pentacene", "size": "4 kb",