public static class TdApi.AnswerCallbackQuery extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
int |
cacheTime
Time during which the result of the query can be cached, in seconds.
|
long |
callbackQueryId
Identifier of the callback query.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
showAlert
Pass true to show an alert to the user instead of a toast notification.
|
java.lang.String |
text
Text of the answer.
|
java.lang.String |
url
URL to be opened.
|
| Constructor and Description |
|---|
AnswerCallbackQuery()
Default constructor for a function, which sets the result of a callback query; for bots only.
|
AnswerCallbackQuery(long callbackQueryId,
java.lang.String text,
boolean showAlert,
java.lang.String url,
int cacheTime)
Creates a function, which sets the result of a callback query; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long callbackQueryId
public java.lang.String text
public boolean showAlert
public java.lang.String url
public int cacheTime
public static final int CONSTRUCTOR
public AnswerCallbackQuery()
Returns Ok
public AnswerCallbackQuery(long callbackQueryId,
java.lang.String text,
boolean showAlert,
java.lang.String url,
int cacheTime)
Returns Ok
callbackQueryId - Identifier of the callback query.text - Text of the answer.showAlert - Pass true to show an alert to the user instead of a toast notification.url - URL to be opened.cacheTime - Time during which the result of the query can be cached, in seconds.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object