Module tdlight.api

Class TdApi.QuickReplyShortcut

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.QuickReplyShortcut
Enclosing class:
TdApi

public static final class TdApi.QuickReplyShortcut extends TdApi.Object
Describes a shortcut that can be used for a quick reply.
  • Field Details

    • id

      public int id
      Unique shortcut identifier.
    • name

      public String name
      The name of the shortcut that can be used to use the shortcut.
    • firstMessage

      public TdApi.QuickReplyMessage firstMessage
      The first shortcut message.
    • messageCount

      public int messageCount
      The total number of messages in the shortcut.
    • CONSTRUCTOR

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

    • QuickReplyShortcut

      public QuickReplyShortcut()
      Describes a shortcut that can be used for a quick reply.
    • QuickReplyShortcut

      public QuickReplyShortcut(int id, String name, TdApi.QuickReplyMessage firstMessage, int messageCount)
      Describes a shortcut that can be used for a quick reply.
      Parameters:
      id - Unique shortcut identifier.
      name - The name of the shortcut that can be used to use the shortcut.
      firstMessage - The first shortcut message.
      messageCount - The total number of messages in the shortcut.
    • QuickReplyShortcut

      public QuickReplyShortcut(DataInput input) throws IOException
      Describes a shortcut that can be used for a quick reply.
      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