pub struct SecretChat {
pub id: i32,
pub user_id: i32,
pub state: SecretChatState,
pub is_outbound: bool,
pub ttl: i32,
pub key_hash: String,
pub layer: i32,
}
Expand description
Represents a secret chat
Fields§
§id: i32
Secret chat identifier
user_id: i32
Identifier of the chat partner
state: SecretChatState
State of the secret chat
is_outbound: bool
True, if the chat was created by the current user; otherwise false
ttl: i32
Current message Time To Live setting (self-destruct timer) for the chat, in seconds
key_hash: String
Hash 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
layer: i32
Secret chat layer; determines features supported by the other client. Video notes are supported if the layer >= 66
Trait Implementations§
Source§impl Clone for SecretChat
impl Clone for SecretChat
Source§fn clone(&self) -> SecretChat
fn clone(&self) -> SecretChat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more