SendTextMessageDraft class
Sends a draft for a text message being generated; for bots only Returns Ok
- Inheritance
-
- Object
- TdFunction
- SendTextMessageDraft
- Available extensions
- Annotations
-
- @immutable
Constructors
- SendTextMessageDraft({required int chatId, required int forumTopicId, required int draftId, required bool canStop, required bool keepOnStop, FormattedText? text})
-
const
Properties
- canStop → bool
-
canStop Pass true to show the user a button to stop further drafts
final
- chatId → int
-
chatId Chat identifier
final
- draftId → int
-
draftId Unique identifier of the draft
final
- forumTopicId → int
-
forumTopicId The identifier of the forum topic in which the message will
be sent; pass 0 if none
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- keepOnStop → bool
-
keepOnStop Pass true to keep the current draft when the user stops
further generation
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → FormattedText?
-
text Draft text of the message; pass null to show a "Thinking..."
placeholder
final
Methods
-
copyWith(
{int? chatId, int? forumTopicId, int? draftId, bool? canStop, bool? keepOnStop, FormattedText? text}) → SendTextMessageDraft -
Available on SendTextMessageDraft, provided by the SendTextMessageDraftExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- constructor → const String