peyk.platforms.bale.types.message_id

Classes

MessageId(message_id)

Represent the Bale Bot API MessageId object.

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

Bases: object

Represent the Bale Bot API MessageId object.

Preserves the existing dataclass fields and parsing behavior.

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

Parse raw Bale data into MessageId.

Parameters:

data (Optional[dict]) – Raw API object or None.

Returns:

Parsed object or None.

Return type:

Optional[MessageId]

Raises:

KeyError – If a required raw field is missing.