SecretChat class final
Represents a secret chat
Constructors
- SecretChat({required int id, required int userId, required SecretChatState state, required bool isOutbound, required String keyHash, required int layer, dynamic extra, int? clientId})
-
Represents a secret chat
const
-
SecretChat.fromJson(Map<
String, dynamic> json) -
Parses a SecretChat from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Secret chat identifier
final
- isOutbound → bool
-
True, if the chat was created by the current user; false otherwise
final
- keyHash → String
-
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
final
- 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, files bigger than 2000MB are supported if the layer >= 143, spoiler and custom emoji text entities are supported if the layer >= 144
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → SecretChatState
-
State of the secret chat
final
- userId → int
-
Identifier of the chat partner
final
Methods
-
copyWith(
{int? id, int? userId, SecretChatState? state, bool? isOutbound, String? keyHash, int? layer, dynamic extra, int? clientId}) → SecretChat -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.