tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::secretChat Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::secretChat:
td::td_api::Object td::TlObject

Public Member Functions

 secretChat ()
 
 secretChat (int32 id_, int53 user_id_, object_ptr< SecretChatState > &&state_, bool is_outbound_, bytes const &key_hash_, int32 layer_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int32 id_
 Secret chat identifier.
 
int53 user_id_
 Identifier of the chat partner.
 
object_ptr< SecretChatStatestate_
 State of the secret chat.
 
bool is_outbound_
 True, if the chat was created by the current user; false otherwise.
 
bytes key_hash_
 Hash of the currently used key for comparison with the hash of the chat partner&#x27;s key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers.
 
int32 layer_
 Secret chat layer; determines features supported by the chat partner&#x27;s application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101, files bigger than 2000MB are supported if the layer >= 143, spoiler and custom emoji text entities are supported if the layer >= 144.
 

Static Public Attributes

static const std::int32_t ID = -676918325
 Identifier uniquely determining a type of the object.
 

Detailed Description

Represents a secret chat.

Definition at line 62051 of file td_api.h.

Constructor & Destructor Documentation

◆ secretChat() [1/2]

td::td_api::secretChat::secretChat ( )

Represents a secret chat.

◆ secretChat() [2/2]

td::td_api::secretChat::secretChat ( int32  id_,
int53  user_id_,
object_ptr< SecretChatState > &&  state_,
bool  is_outbound_,
bytes const &  key_hash_,
int32  layer_ 
)

Represents a secret chat.

Parameters
[in]id_Secret chat identifier.
[in]user_id_Identifier of the chat partner.
[in]state_State of the secret chat.
[in]is_outbound_True, if the chat was created by the current user; false otherwise.
[in]key_hash_Hash of the currently used key for comparison with the hash of the chat partner&#x27;s key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers.
[in]layer_Secret chat layer; determines features supported by the chat partner&#x27;s application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101, files bigger than 2000MB are supported if the layer >= 143, spoiler and custom emoji text entities are supported if the layer >= 144.

Member Function Documentation

◆ store()

void td::td_api::secretChat::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ ID

const std::int32_t td::td_api::secretChat::ID = -676918325
static

Identifier uniquely determining a type of the object.

Definition at line 62092 of file td_api.h.

◆ id_

int32 td::td_api::secretChat::id_

Secret chat identifier.

Definition at line 62062 of file td_api.h.

◆ is_outbound_

bool td::td_api::secretChat::is_outbound_

True, if the chat was created by the current user; false otherwise.

Definition at line 62068 of file td_api.h.

◆ key_hash_

bytes td::td_api::secretChat::key_hash_

Hash of the currently used key for comparison with the hash of the chat partner&#x27;s key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers.

Definition at line 62070 of file td_api.h.

◆ layer_

int32 td::td_api::secretChat::layer_

Secret chat layer; determines features supported by the chat partner&#x27;s application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101, files bigger than 2000MB are supported if the layer >= 143, spoiler and custom emoji text entities are supported if the layer >= 144.

Definition at line 62072 of file td_api.h.

◆ state_

object_ptr<SecretChatState> td::td_api::secretChat::state_

State of the secret chat.

Definition at line 62066 of file td_api.h.

◆ user_id_

int53 td::td_api::secretChat::user_id_

Identifier of the chat partner.

Definition at line 62064 of file td_api.h.


The documentation for this class was generated from the following file: