Module tdlight.api

Class TdApi.MessageSendingStateFailed

Enclosing class:
TdApi

public static final class TdApi.MessageSendingStateFailed extends TdApi.MessageSendingState
The message failed to be sent.
  • Field Details

    • error

      public TdApi.Error error
      The cause of the message sending failure.
    • canRetry

      public boolean canRetry
      True, if the message can be re-sent.
    • needAnotherSender

      public boolean needAnotherSender
      True, if the message can be re-sent only on behalf of a different sender.
    • retryAfter

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

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • MessageSendingStateFailed

      public MessageSendingStateFailed()
      The message failed to be sent.
    • MessageSendingStateFailed

      public MessageSendingStateFailed(TdApi.Error error, boolean canRetry, boolean needAnotherSender, double retryAfter)
      The message failed to be sent.
      Parameters:
      error - The cause of the message sending failure.
      canRetry - True, if the message can be re-sent.
      needAnotherSender - True, if the message can be re-sent only on behalf of a different sender.
      retryAfter - Time left before the message can be re-sent, in seconds. No update is sent when this field changes.
    • MessageSendingStateFailed

      public MessageSendingStateFailed(DataInput input) throws IOException
      The message failed to be sent.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object