UpdatePendingMessage class final
A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds, replace any other pending message with the same draft_id with animation, and be deleted whenever any incoming message or a pending message with another draft_id is received in the message thread
Constructors
- UpdatePendingMessage({required int chatId, required int forumTopicId, required int draftId, required bool canStop, required bool keepOnStop, required MessageContent content, dynamic extra, int? clientId})
-
A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds, replace any other pending message with the same draft_id with animation, and be deleted whenever any incoming message or a pending message with another draft_id is received in the message thread
const
-
UpdatePendingMessage.fromJson(Map<
String, dynamic> json) -
Parses a UpdatePendingMessage from TDLib JSON.
factory
Properties
- canStop → bool
-
True, if a button that calls stopPendingMessage to stop further message generation must be shown
final
- chatId → int
-
Chat identifier
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- content → MessageContent
-
Content of the message; always of the type messageText or messageRichMessage
final
- draftId → int
-
Unique identifier of the message draft within the message thread
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- forumTopicId → int
-
The forum topic identifier in which the message will be sent; 0 if none
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepOnStop → bool
-
True, if the pending message must not be automatically deleted when the user presses the Stop button
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? chatId, int? forumTopicId, int? draftId, bool? canStop, bool? keepOnStop, MessageContent? content, dynamic extra, int? clientId}) → UpdatePendingMessage -
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.