Package org.drinkless.tdlib
Class TdApi.AnswerCustomQuery
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 intCONSTRUCTORIdentifier uniquely determining type of the object.longcustomQueryIdIdentifier of a custom query.StringdataJSON-serialized answer to the query.
-
Constructor Summary
Constructors Constructor Description AnswerCustomQuery()Default constructor for a function, which answers a custom query; for bots only.AnswerCustomQuery(long customQueryId, String data)Creates a function, which answers a custom query; for bots only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
customQueryId
public long customQueryId
Identifier of a custom query.
-
data
public String data
JSON-serialized answer to the query.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AnswerCustomQuery
public AnswerCustomQuery()
Default constructor for a function, which answers a custom query; for bots only.Returns
Ok
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-