Skip to content

Commit

Permalink
remove listener after execute it
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d committed Jul 6, 2024
1 parent 5f7ad86 commit 39734ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tgram/tgbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ async def _check_update(self: "TgBot", update: "tgram.types.Update") -> 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 39734ab

Please sign in to comment.