TDLib v0.0.2 TDLib.Object.SecretChat View Source

Represents a secret chat.

NameTypeDescription
idnumberSecret chat identifier.
user_idnumberIdentifier of the chat partner.
stateSecretChatStateState of the secret chat.
is_outboundboolTrue, if the chat was created by the current user; otherwise false.
ttlnumberCurrent message Time To Live setting (self-destruct timer) for the chat, in seconds.
key_hashstringHash of the currently used key for comparison with the hash of the chat partner’s key. This is a string of 36 bytes, which must be used to make a 12x12 square image with a color depth of 4. The first 16 bytes should be used to make a central 8x8 square, while the remaining 20 bytes should be used to construct a 2-pixel-wide border around that square. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers.
layernumberSecret chat layer; determines features supported by the other client. Video notes are supported if the layer >= 66.

More details on telegram’s documentation.