CreatePrivateChat class final

CreatePrivateChat (createPrivateChat) - TDLib function

Returns an existing chat corresponding to a given user.

  • userId: User identifier.
  • force: Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect.

Chat is returned on completion.

Inheritance

Constructors

CreatePrivateChat({required int userId, required bool force})
CreatePrivateChat (createPrivateChat) - TDLib function
const

Properties

currentObjectId → String
TDLib object type for current class instance
no setteroverride
force → bool
Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → int
User identifier
final

Methods

copyWith({int? userId, bool? force}) → CreatePrivateChat
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() → String
Convert model to TDLib JSON format, encoded into String.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultObjectId → const String
TDLib object type