public interface InlineQuery
| Modifier and Type | Method and Description |
|---|---|
default boolean |
answer(TelegramBot telegramBot,
InlineQueryResponse response)
This method allows you to directly answer the Inline Query from this object.
|
default boolean |
answer(TelegramBot telegramBot,
InlineQueryResult... results)
This method allows you to directly answer the Inline Query from this object.
|
org.json.JSONObject |
asJson()
Gets the JSONObject that was sent by the bot API to produce this object
|
Location |
getLocation()
Gets the Location of the User that sent this inline query
|
String |
getOffset()
The offset for this query, this can be used to enable pagination when the user scrolls to the end of the
current list of results.
|
String |
getQuery()
Gets the query string that was sent by the User
|
String |
getQueryId()
Gets the ID of this inline query
|
User |
getSender()
Gets the User that sent this inline query
|
String getQueryId()
User getSender()
Location getLocation()
String getQuery()
String getOffset()
org.json.JSONObject asJson()
default boolean answer(TelegramBot telegramBot, InlineQueryResult... results)
telegramBot - The TelegramBot instance that is related to this queryresults - An array of results to be sent back to the Userdefault boolean answer(TelegramBot telegramBot, InlineQueryResponse response)
telegramBot - The TelegramBot instance that is related to this queryresponse - An InlineQueryResponse object containing the results to the inline queryCopyright © 2017. All rights reserved.