Interface MessageSendingStateFailed

The message failed to be sent. Subtype of MessageSendingState.

interface MessageSendingStateFailed {
    @type: "messageSendingStateFailed";
    can_retry?: boolean;
    error: Error;
    need_another_reply_quote?: boolean;
    need_another_sender?: boolean;
    need_drop_reply?: boolean;
    retry_after: number;
}

Properties

@type: "messageSendingStateFailed"
can_retry?: boolean

True, if the message can be re-sent using resendMessages or readdQuickReplyShortcutMessages.

error: Error

The cause of the message sending failure.

need_another_reply_quote?: boolean

True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message.

need_another_sender?: boolean

True, if the message can be re-sent only on behalf of a different sender.

need_drop_reply?: boolean

True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by resendMessages.

retry_after: number

Time left before the message can be re-sent, in seconds. No update is sent when this field changes.