peyk.platforms.rubika.types.chat

Classes

Chat([chat_id, chat_type, user_id, ...])

Represent the Rubika Bot API Chat type.

class peyk.platforms.rubika.types.chat.Chat(chat_id: str = '', chat_type: str = '', user_id: str | None = None, first_name: str | None = None, last_name: str | None = None, title: str | None = None, username: str | None = None)[source]

Bases: object

Represent the Rubika Bot API Chat type.

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

chat_id: str = ''
chat_type: str = ''
user_id: str | None = None
first_name: str | None = None
last_name: str | None = None
title: str | None = None
username: str | None = None
classmethod from_dict(data: dict | None) Chat | 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.