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 ofstr
, optional) – The inline message ID to match. If None, it is not considered for matching.chat_id (
int
|str
| Iterable ofint
| Iterable ofstr
, optional) – The chat ID to match. If None, it is not considered for matching.message_id (
int
| Iterable ofint
) – The message ID to match. If None, it is not considered for matching.from_user_id (
int
|str
| Iterable ofint
| Iterable ofstr
, optional) – The user ID to match. If None, it is not considered for matching.