Skip to content

Filters

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

message_id(ids: int | Iterable[int])

Filter updates that match a given message id.

Can be applied to handlers that receive one of the following updates:

  • pyrography.types.Message: The filter will match message.id
  • pyrography.types.CallbackQuery: The filter will match update.message.id.

Parameters:

  • ids (int | Iterable[int]): An integer id or a integer list of ids.
Clone this wiki locally