Module tdlight.api

Class TdApi.InlineQueryResults

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

public static final class TdApi.InlineQueryResults extends TdApi.Object
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.
  • Field Details

    • inlineQueryId

      public long inlineQueryId
      Unique identifier of the inline query.
    • button

      Button to be shown above inline query results; may be null.
    • results

      public TdApi.InlineQueryResult[] results
      Results of the query.
    • nextOffset

      public String nextOffset
      The offset for the next request. If empty, there are no more results.
    • CONSTRUCTOR

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

    • InlineQueryResults

      public InlineQueryResults()
      Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.
    • InlineQueryResults

      public InlineQueryResults(long inlineQueryId, TdApi.InlineQueryResultsButton button, TdApi.InlineQueryResult[] results, String nextOffset)
      Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.
      Parameters:
      inlineQueryId - Unique identifier of the inline query.
      button - Button to be shown above inline query results; may be null.
      results - Results of the query.
      nextOffset - The offset for the next request. If empty, there are no more results.
    • InlineQueryResults

      public InlineQueryResults(DataInput input) throws IOException
      Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.
      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