Identifier

class pyrogram.types.Identifier

A dataclass that serves as a utility for matching listeners to the data of updates.

Parameters:
  • inline_message_id (str | Iterable of str, optional) – The inline message ID to match. If None, it is not considered for matching.

  • chat_id (int | str | Iterable of int | Iterable of str, optional) – The chat ID to match. If None, it is not considered for matching.

  • message_id (int | Iterable of int) – The message ID to match. If None, it is not considered for matching.

  • from_user_id (int | str | Iterable of int | Iterable of str, optional) – The user ID to match. If None, it is not considered for matching.