diff --git a/tgram/tgbot.py b/tgram/tgbot.py index 580ab31..9ae89cd 100644 --- a/tgram/tgbot.py +++ b/tgram/tgbot.py @@ -75,11 +75,11 @@ async def _check_update(self: "TgBot", update: "tgram.types.Update") -> None: if (attr := getattr(update, listener.update_type)) and listener.filters( attr ): + self._listen_handlers.remove(listener) if listener.cancel is not None: result = await self._check_cancel(listener.cancel, update) if result: continue - self._listen_handlers.remove(listener) return await self._process_update(attr, listener.next_step) for handler in self._handlers: