- 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 Summary
Modifier and TypeFieldDescriptionlong
The identifier of the target bot.long
Identifier of the chat where the query was sent.static final int
Offset of the first entry to return.Text of the query.Location of the user; pass null if unknown or the bot doesn't need user's location. -
Constructor Summary
ConstructorDescriptionSends an inline query to a bot and returns its results.GetInlineQueryResults
(long botUserId, long chatId, TdApi.Location userLocation, String query, String offset) Sends an inline query to a bot and returns its results.GetInlineQueryResults
(DataInput input) Sends an inline query to a bot and returns its results. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
botUserId
public long botUserIdThe identifier of the target bot. -
chatId
public long chatIdIdentifier of the chat where the query was sent. -
userLocation
Location of the user; pass null if unknown or the bot doesn't need user's location. -
query
Text of the query. -
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 The 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
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
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-