public static class TdApi.AnswerCustomQuery extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
customQueryId
Identifier of a custom query.
|
java.lang.String |
data
JSON-serialized answer to the query.
|
| Constructor and Description |
|---|
AnswerCustomQuery()
Default constructor for a function, which answers a custom query; for bots only.
|
AnswerCustomQuery(long customQueryId,
java.lang.String data)
Creates a function, which answers a custom query; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long customQueryId
public java.lang.String data
public static final int CONSTRUCTOR
public AnswerCustomQuery()
Returns Ok
public AnswerCustomQuery(long customQueryId,
java.lang.String data)
Returns Ok
customQueryId - Identifier of a custom query.data - JSON-serialized answer to the query.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object