Inherits td::td_api::Object.
|
int32 | id_ |
| Secret chat identifier.
|
|
int53 | user_id_ |
| Identifier of the chat partner.
|
|
object_ptr< SecretChatState > | state_ |
| 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'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'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 const std::int32_t | ID = -676918325 |
| Identifier uniquely determining a type of the object.
|
|
Represents a secret chat.
◆ secretChat() [1/2]
td::td_api::secretChat::secretChat |
( |
| ) |
|
Represents a secret chat.
◆ secretChat() [2/2]
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'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'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. |
◆ get_id()
std::int32_t td::td_api::secretChat::get_id |
( |
| ) |
const |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
- Returns
- this->ID.
Implements td::TlObject.
◆ 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] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
The documentation for this class was generated from the following file: