Skip to content

Commit

Permalink
remove it directly
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d committed Jul 6, 2024
1 parent 39734ab commit d793c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgram/tgbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d793c95

Please sign in to comment.