Class AnswerShippingQuery
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<AnswerShippingQuery, Boolean>
io.github.natanimn.telebof.requests.answer.AnswerShippingQuery
AnswerShippingQuery class. Returns True on success.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerrorMessage
(String error_message) OptionalshippingOptions
(ShippingOption[] shipping_options) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
AnswerShippingQuery
-
-
Method Details
-
shippingOptions
Optional- Parameters:
shipping_options
- Required if ok is True.
A JSON-serialized array of available shipping options.- Returns:
AnswerShippingQuery
-
errorMessage
Optional- Parameters:
error_message
- Required if ok is False.
Error message in human-readable form that explains why it is impossible to complete the order (e.g. “Sorry, delivery to your desired address is unavailable”). Telegram will display this message to the user.- Returns:
AnswerShippingQuery
-