Class TdApi.AnswerCustomQuery
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.AnswerCustomQuery
- Enclosing class:
- TdApi
Answers a custom query; for bots only.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.long
Identifier of a custom query.JSON-serialized answer to the query. -
Constructor Summary
ConstructorDescriptionDefault 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 TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-