public interface CallbackQuery
| Modifier and Type | Method and Description |
|---|---|
default boolean |
answer(String text,
boolean showAlert)
This method is used to directly answer the CallbackQuery without having to call other methods outside this object
|
org.json.JSONObject |
asJson()
Gets the JSON representation of this CallbackQuery object as received from the Telegram Bot API
|
TelegramBot |
getBotInstance()
Gets the TelegramBot instance associated with this CallbackQuery
|
String |
getChatInstance()
Gets the unique identifier for the chat instance that this game callback query is being sent from
|
String |
getData()
Deprecated.
This method is deprecated in favour of the more specific CallbackQuery objects, as it can sometimes
be null here.
|
User |
getFrom()
Gets who triggered the CallbackQuery
|
String |
getId()
Gets the ID of this CallbackQuery
|
default CallbackQueryType |
getType()
Gets the CallbackQueryType for this callback query
|
TelegramBot getBotInstance()
String getId()
String getChatInstance()
default CallbackQueryType getType()
User getFrom()
@Deprecated String getData()
org.json.JSONObject asJson()
default boolean answer(String text, boolean showAlert)
text - The text you would like to send in response to this CallbackQueryshowAlert - Whether to show this as an alert or a toast. The default is a toastCopyright © 2017. All rights reserved.