public static class TdApi.AnswerCustomQuery extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
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() |
toString
public 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()
getConstructor
in class TdApi.Function