Identifier

class pyrogram.types.Identifier[source]

The set of criteria a listener waits for.

A None field is a wildcard. A field may hold a single value or a list of values, in which case any of them matches.

Parameters:
  • chat_id (int | str | List of int | str, optional) – Chat the awaited update must come from.

  • user_id (int | str | List of int | str, optional) – User the awaited update must come from.

  • message_id (int | List of int, optional) – Message the awaited update must belong to.

  • inline_message_id (str | List of str, optional) – Inline message the awaited update must belong to.