diff --git a/stdplugins/sp_prog_rename.py b/stdplugins/sp_prog_rename.py index 996a8b9..3ff5bfd 100644 --- a/stdplugins/sp_prog_rename.py +++ b/stdplugins/sp_prog_rename.py @@ -59,6 +59,7 @@ async def on_name(event): func=lambda e: e.deleted_id == event.message.id ))) if await wait_for_delete(deleted_fut, MULTI_EDIT_TIMEOUT): + await asyncio.sleep(MULTI_EDIT_TIMEOUT) return if await wait_for_delete(deleted_fut, REVERT_TIMEOUT) or lock.locked(): return