SecretChat class
Represents a secret chat.
- Inheritance
- Available Extensions
Constructors
- SecretChat({required int id, required int user_id, required SecretChatState state, required bool is_outbound, required bytes key_hash, required int layer, int? extra, int? clientId})
- Represents a secret chat
Properties
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ int
-
Secret chat identifier.
read / write
- is_outbound ↔ bool
-
True, if the chat was created by the current user; false otherwise.
read / write
- key_hash ↔ bytes
-
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..
; base64-encoded bytes
List<int>
read / write - layer ↔ int
-
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,.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- state ↔ SecretChatState
-
State of the secret chat.
read / write
- user_id ↔ int
-
Identifier of the chat partner.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → SecretChat? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"secretChat"