MessageSendingStateFailed class final
MessageSendingStateFailed (messageSendingStateFailed) - child of MessageSendingState
The message failed to be sent.
- error: The cause of the message sending failure.
- canRetry: True, if the message can be re-sent using resendMessages or readdQuickReplyShortcutMessages.
- needAnotherSender: True, if the message can be re-sent only on behalf of a different sender.
- needAnotherReplyQuote: True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message.
- needDropReply: True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by resendMessages.
- retryAfter: Time left before the message can be re-sent, in seconds. No update is sent when this field changes.
- Inheritance
-
- Object
- TdObject
- MessageSendingState
- MessageSendingStateFailed
Constructors
- MessageSendingStateFailed({required TdError error, required bool canRetry, required bool needAnotherSender, required bool needAnotherReplyQuote, required bool needDropReply, required double retryAfter})
-
MessageSendingStateFailed (messageSendingStateFailed) - child of MessageSendingState
const
-
MessageSendingStateFailed.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- canRetry → bool
-
True, if the message can be re-sent using resendMessages or readdQuickReplyShortcutMessages
final
- clientId → int?
-
Client ID, from which this object was received
no setterinherited
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- error → TdError
-
The cause of the message sending failure
final
- extra → dynamic
-
A sign from TDLib update
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- needAnotherReplyQuote → bool
-
True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message
final
- needAnotherSender → bool
-
True, if the message can be re-sent only on behalf of a different sender
final
- needDropReply → bool
-
True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by resendMessages
final
- retryAfter → double
-
Time left before the message can be re-sent, in seconds. No update is sent when this field changes
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{TdError? error, bool? canRetry, bool? needAnotherSender, bool? needAnotherReplyQuote, bool? needDropReply, double? retryAfter}) → MessageSendingStateFailed -
Copy model with modified properties.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → 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