diff --git a/davtelepot/custombot.py b/davtelepot/custombot.py index 92c4a33..48e5b89 100644 --- a/davtelepot/custombot.py +++ b/davtelepot/custombot.py @@ -1717,8 +1717,7 @@ class Bot(telepot.aio.Bot, Gettable): return inline_message_id = update['inline_message_id'] self.to_be_obscured.append(inline_message_id) - while datetime.datetime.now() < when: - await sleep_until(when) + await sleep_until(when) try: await self.editMessageCaption( inline_message_id,