Module tdlight.api

Class TdApi.AnswerInlineQuery

Enclosing class:
TdApi

public static final class TdApi.AnswerInlineQuery extends TdApi.Function<TdApi.Ok>
Sets the result of an inline query; for bots only. Returns Ok
  • Field Details

    • inlineQueryId

      public long inlineQueryId
      Identifier of the inline query.
    • isPersonal

      public boolean isPersonal
      Pass true if results may be cached and returned only for the user that sent the query. By default, results may be returned to any user who sends the same query.
    • button

      Button to be shown above inline query results; pass null if none.
    • results

      public TdApi.InputInlineQueryResult[] results
      The results of the query.
    • cacheTime

      public int cacheTime
      Allowed time to cache the results of the query, in seconds.
    • nextOffset

      public String nextOffset
      Offset for the next inline query; pass an empty string if there are no more results.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • AnswerInlineQuery

      public AnswerInlineQuery()
      Sets the result of an inline query; for bots only. Returns Ok
    • AnswerInlineQuery

      public AnswerInlineQuery(long inlineQueryId, boolean isPersonal, TdApi.InlineQueryResultsButton button, TdApi.InputInlineQueryResult[] results, int cacheTime, String nextOffset)
      Sets the result of an inline query; for bots only. Returns Ok
      Parameters:
      inlineQueryId - long Identifier of the inline query.
      isPersonal - boolean Pass true if results may be cached and returned only for the user that sent the query. By default, results may be returned to any user who sends the same query.
      button - InlineQueryResultsButton Button to be shown above inline query results; pass null if none.
      results - InputInlineQueryResult[] The results of the query.
      cacheTime - int Allowed time to cache the results of the query, in seconds.
      nextOffset - String Offset for the next inline query; pass an empty string if there are no more results.
    • AnswerInlineQuery

      public AnswerInlineQuery(DataInput input) throws IOException
      Sets the result of an inline query; for bots only. Returns Ok
      Throws:
      IOException
  • Method Details