public static class TdApi.AnswerCallbackQuery extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
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
If true, an alert should be shown 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() |
toString
public 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
- If true, an alert should be shown 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()
getConstructor
in class TdApi.Function