peyk.platforms.telegram.types.message_id

Classes

MessageId(message_id)

This object represents a unique message identifier.

class peyk.platforms.telegram.types.message_id.MessageId(message_id: int)[source]

Bases: object

This object represents a unique message identifier.

Variables:

message_id (int) – Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent.

message_id: int
classmethod from_dict(data: dict | None) MessageId | None[source]

Parse a Telegram API mapping into this type.

Parameters:

data – Raw Telegram API mapping, or None.

Returns:

Parsed type instance, or None when data is None.