public class CallbackQueryImpl extends Object implements CallbackQuery
| Modifier | Constructor and Description |
|---|---|
protected |
CallbackQueryImpl(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
asJson()
Gets the JSON representation of this CallbackQuery object as received from the Telegram Bot API
|
static CallbackQuery |
createCallbackQuery(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
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()
Gets the data that was originally sent with the button used to trigger this CallbackQuery
|
User |
getFrom()
Gets who triggered the CallbackQuery
|
String |
getId()
Gets the ID of this CallbackQuery
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitanswer, getTypeprotected CallbackQueryImpl(org.json.JSONObject jsonObject,
TelegramBot telegramBot)
public static CallbackQuery createCallbackQuery(org.json.JSONObject jsonObject, TelegramBot telegramBot)
public TelegramBot getBotInstance()
CallbackQuerygetBotInstance in interface CallbackQuerypublic String getId()
CallbackQuerygetId in interface CallbackQuerypublic String getChatInstance()
CallbackQuerygetChatInstance in interface CallbackQuerypublic User getFrom()
CallbackQuerygetFrom in interface CallbackQuerypublic String getData()
CallbackQuerygetData in interface CallbackQuerypublic org.json.JSONObject asJson()
CallbackQueryasJson in interface CallbackQueryCopyright © 2017. All rights reserved.