peyk.platforms.rubika.types.metadata_part

Classes

MetadataPart([type, from_index, length, ...])

Represent the Rubika Bot API MetadataPart type.

class peyk.platforms.rubika.types.metadata_part.MetadataPart(type: str = '', from_index: int = 0, length: int = 0, link_url: str | None = None, mention_text_user_id: str | None = None)[source]

Bases: object

Represent the Rubika Bot API MetadataPart type.

The class preserves the existing public fields and wire-format behavior.

type: str = ''
from_index: int = 0
length: int = 0
mention_text_user_id: str | None = None
classmethod from_dict(data: dict | None) MetadataPart | None[source]

Performs the from dict operation for the Rubika client.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the Rubika operation.

to_dict() Dict[str, object][source]

Performs the to dict operation for the Rubika client.

Returns:

Result produced by the Rubika operation.