Package org.drinkless.tdlib
Class TdApi.AnswerCustomQuery
- Enclosing class:
- TdApi
Answers a custom query; for bots only.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longIdentifier of a custom query.JSON-serialized answer to the query. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
customQueryId
public long customQueryIdIdentifier of a custom query. -
data
JSON-serialized answer to the query. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AnswerCustomQuery
public AnswerCustomQuery()Default constructor for a function, which answers a custom query; for bots only.Returns
Ok -
AnswerCustomQuery
Creates a function, which answers a custom query; for bots only.Returns
Ok- Parameters:
customQueryId- Identifier of a custom query.data- JSON-serialized answer to the query.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-