Module tdlight.api

Class TdApi.GetInlineQueryResults

Enclosing class:
TdApi

public static final class TdApi.GetInlineQueryResults extends TdApi.Function<TdApi.InlineQueryResults>
Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires. Returns InlineQueryResults
  • Field Details

    • botUserId

      public long botUserId
      Identifier of the target bot.
    • chatId

      public long chatId
      Identifier of the chat where the query was sent.
    • userLocation

      public TdApi.Location userLocation
      Location of the user; pass null if unknown or the bot doesn't need user's location.
    • query

      public String query
      Text of the query.
    • offset

      public String offset
      Offset of the first entry to return.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetInlineQueryResults

      public GetInlineQueryResults()
      Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires. Returns InlineQueryResults
    • GetInlineQueryResults

      public GetInlineQueryResults(long botUserId, long chatId, TdApi.Location userLocation, String query, String offset)
      Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires. Returns InlineQueryResults
      Parameters:
      botUserId - long Identifier of the target bot.
      chatId - long Identifier of the chat where the query was sent.
      userLocation - Location Location of the user; pass null if unknown or the bot doesn't need user's location.
      query - String Text of the query.
      offset - String Offset of the first entry to return.
    • GetInlineQueryResults

      public GetInlineQueryResults(DataInput input) throws IOException
      Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires. Returns InlineQueryResults
      Throws:
      IOException
  • Method Details