tgbot-cpp
Loading...
Searching...
No Matches
TgBot::AnswerShippingQueryArgs Struct Reference

Arguments for Api::answerShippingQuery. More...

#include <Types.h>

Public Attributes

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.

Detailed Description

Arguments for Api::answerShippingQuery.

Definition at line 15379 of file Types.h.

Member Data Documentation

◆ 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 15404 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 15390 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 15396 of file Types.h.

◆ shippingQueryId

std::string TgBot::AnswerShippingQueryArgs::shippingQueryId { }

Unique identifier for the query to be answered.

Definition at line 15383 of file Types.h.


The documentation for this struct was generated from the following file: