Package it.tdlight.jni
Class TdApi.AnswerCustomQuery
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.AnswerCustomQuery
- Enclosing class:
- TdApi
public static class TdApi.AnswerCustomQuery extends TdApi.Function
Answers a custom query; for bots only.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
long
customQueryId
Identifier of a custom query.String
data
JSON-serialized answer to the query. -
Constructor Summary
Constructors Constructor Description AnswerCustomQuery()
Answers a custom query; for bots only.AnswerCustomQuery(long customQueryId, String data)
Answers a custom query; for bots only.AnswerCustomQuery(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
customQueryId
public long customQueryIdIdentifier of a custom query. -
data
JSON-serialized answer to the query. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
AnswerCustomQuery
public AnswerCustomQuery()Answers a custom query; for bots only.Returns
Ok
-
AnswerCustomQuery
Answers a custom query; for bots only.Returns
Ok
- Parameters:
customQueryId
- long Identifier of a custom query.data
- String JSON-serialized answer to the query.
-
AnswerCustomQuery
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-