Skip to content

Client methods

Lelzin λ edited this page Sep 3, 2024 · 3 revisions

wait_for(type: Update | None = Message, filter: Filter | None = None, timeout: int | None = 60)

Waits for a dispatcher update.

Parameters:

  • type (Update, optional): Type of update to receive, by default are text messages, if None any type will be received.
  • filter (Filter, optional): Specific filter for the update, by default there is no filter.
  • timeout (int, optional): Timeout in seconds, default is 60 seconds.

Raises:

TimeoutError: thrown when the time limit is exceeded.

Clone this wiki locally