Arguments for Api::answerShippingQuery.
More...
#include <Types.h>
|
| std::string | shippingQueryId { } |
| | Unique identifier for the query to be answered.
|
| bool | ok { } |
| | Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible).
|
| std::vector< std::shared_ptr< ShippingOption > > | shippingOptions = { } |
| | Required if ok is True. A JSON-serialized Array of available shipping options.
|
| std::string | errorMessage = "" |
| | 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.
|
Arguments for Api::answerShippingQuery.
Definition at line 14554 of file Types.h.
◆ errorMessage
| std::string TgBot::AnswerShippingQueryArgs::errorMessage = "" |
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.
Definition at line 14579 of file Types.h.
◆ ok
| bool TgBot::AnswerShippingQueryArgs::ok { } |
Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible).
Definition at line 14565 of file Types.h.
◆ shippingOptions
| std::vector<std::shared_ptr<ShippingOption> > TgBot::AnswerShippingQueryArgs::shippingOptions = { } |
Required if ok is True. A JSON-serialized Array of available shipping options.
Definition at line 14571 of file Types.h.
◆ shippingQueryId
| std::string TgBot::AnswerShippingQueryArgs::shippingQueryId { } |
Unique identifier for the query to be answered.
Definition at line 14558 of file Types.h.
The documentation for this struct was generated from the following file: