Class TdApi.GetInlineQueryResults

Enclosing class:
TdApi

public static class TdApi.GetInlineQueryResults
extends TdApi.Function
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 int botUserId
      The 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, only if needed.
    • 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:
      Constant Field Values
  • 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​(int 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 - int The identifier of the target bot.
      chatId - long Identifier of the chat where the query was sent.
      userLocation - Location Location of the user, only if needed.
      query - String Text of the query.
      offset - String Offset of the first entry to return.
    • GetInlineQueryResults

      public GetInlineQueryResults​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details