MessageSendingStateFailed class final
The message failed to be sent
- 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})
-
The message failed to be sent
const
-
MessageSendingStateFailed.fromJson(Map<
String, dynamic> json) -
Parses a MessageSendingStateFailed from TDLib JSON.
factory
Properties
- canRetry → bool
-
True, if the message can be re-sent
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- error → TdError
-
The cause of the message sending failure
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
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 -
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.