SecretChat class
Represents a secret chat
Constructors
- SecretChat({String? extra, int? client_id, int32? id, int53? user_id, SecretChatState? state, Bool? is_outbound, bytes? key_hash, int32? layer})
-
SecretChat.fromMap(Map<
String, dynamic> map)
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int32?
-
Secret chat identifier
getter/setter pair
- is_outbound ↔ Bool?
-
True, if the chat was created by the current user; false otherwise
getter/setter pair
- 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.
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
getter/setter pair
- layer ↔ int32?
-
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
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ SecretChatState?
-
State of the secret chat
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- user_id ↔ int53?
-
Identifier of the chat partner
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited