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.

Optional args:

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

Raises:

TimeoutError: thrown when the time limit is exceeded.

Clone this wiki locally