InternalLinkTypeMessageDraft class final
The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be opened and the text is added to the input field
- Inheritance
-
- Object
- TdObject
- InternalLinkType
- InternalLinkTypeMessageDraft
Constructors
- InternalLinkTypeMessageDraft({required FormattedText text, required bool containsLink, dynamic extra, int? clientId})
-
The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be opened and the text is added to the input field
const
-
InternalLinkTypeMessageDraft.fromJson(Map<
String, dynamic> json) -
Parses a InternalLinkTypeMessageDraft from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- containsLink → bool
-
True, if the first line of the text contains a link. If true, the input field needs to be focused and the text after the link must be selected
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → FormattedText
-
Message draft text
final
Methods
-
copyWith(
{FormattedText? text, bool? containsLink, dynamic extra, int? clientId}) → InternalLinkTypeMessageDraft -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it.override -
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.