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.

Returns:

  • (Boolean)

    the current value of can_retry



9
10
11
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 9

def can_retry
  @can_retry
end

#error_codeInteger

An error code; 0 if unknown.

Returns:

  • (Integer)

    the current value of error_code



9
10
11
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 9

def error_code
  @error_code
end

#error_messageTD::Types::String

Error message.

Returns:

  • (TD::Types::String)

    the current value of error_message



9
10
11
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 9

def error_message
  @error_message
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



9
10
11
# File 'lib/tdlib/types/message_sending_state/failed.rb', line 9

def retry_after
  @retry_after
end