peyk.platforms.rubika.types.forwarded_from

Classes

ForwardedFrom([type_from, message_id, ...])

Represent the Rubika Bot API ForwardedFrom type.

class peyk.platforms.rubika.types.forwarded_from.ForwardedFrom(type_from: str | None = None, message_id: str | None = None, from_chat_id: str | None = None, from_sender_id: str | None = None)[source]

Bases: object

Represent the Rubika Bot API ForwardedFrom type.

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

type_from: str | None = None
message_id: str | None = None
from_chat_id: str | None = None
from_sender_id: str | None = None
classmethod from_dict(data: dict | None) ForwardedFrom | 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.