Class: TD::Types::MessageSendingState::Failed

Inherits:
TD::Types::MessageSendingState show all
Defined in:
lib/tdlib/types/message_sending_state/failed.rb

Overview

The message failed to be sent.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_retryBoolean

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

Returns:

  • (Boolean)

    the current value of can_retry



14
15
16
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 14

def can_retry
  @can_retry
end

#errorTD::Types::Error

The cause of the message sending failure.

Returns:



14
15
16
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 14

def error
  @error
end

#need_another_reply_quoteBoolean

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

Returns:

  • (Boolean)

    the current value of need_another_reply_quote



14
15
16
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 14

def need_another_reply_quote
  @need_another_reply_quote
end

#need_another_senderBoolean

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

Returns:

  • (Boolean)

    the current value of need_another_sender



14
15
16
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 14

def need_another_sender
  @need_another_sender
end

#need_drop_replyBoolean

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

Returns:

  • (Boolean)

    the current value of need_drop_reply



14
15
16
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 14

def need_drop_reply
  @need_drop_reply
end

#retry_afterFloat

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

Returns:

  • (Float)

    the current value of retry_after



14
15
16
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 14

def retry_after
  @retry_after
end