diff options
author | JellyBrick <shlee1503@naver.com> | 2018-06-22 21:44:52 +0900 |
---|---|---|
committer | JellyBrick <shlee1503@naver.com> | 2018-06-22 21:44:52 +0900 |
commit | fea0c2ffb669923959df17ba904448e159d22489 (patch) | |
tree | 7602971aa63d60db98aef9f0902751fcc994898c /src | |
parent | 531b376681830f57634a69c22df841f5ee5e2e23 (diff) |
Fix typo (std::vector contains Object::Ptr)
Thanks VSCode
Diffstat (limited to 'src')
-rw-r--r-- | src/Api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Api.cpp b/src/Api.cpp index de697df..e6a39d7 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -230,7 +230,7 @@ Message::Ptr Api::sendDocument(int64_t chatId, const string& document, const str } Message::Ptr Api::sendInvoice(int64_t chatId, const std::string& title, const std::string& description, const std::string& payload, - const std::string& providerToken, const std::string& startParameter, const std::string& currency, const std::vector<LabeledPrice>& prices, + const std::string& providerToken, const std::string& startParameter, const std::string& currency, const std::vector<LabeledPrice::Ptr>& prices, const std::string& providerData, const std::string& photoUrl, int32_t photoSize, int32_t photoWidth, int32_t photoHeight, bool needName, bool needPhoneNumber, bool needEmail, bool needShippingAddress, @@ -294,7 +294,7 @@ Message::Ptr Api::sendInvoice(int64_t chatId, const std::string& title, const st return TgTypeParser::getInstance().parseJsonAndGetMessage(sendRequest("sendInvoice", args)); } -bool Api::answerShippingQuery(const std::string& shippingQueryId, bool ok, const std::vector<ShippingOption>& shippingOptions, const std::string& errorMessage) const { +bool Api::answerShippingQuery(const std::string& shippingQueryId, bool ok, const std::vector<ShippingOption::Ptr>& shippingOptions, const std::string& errorMessage) const { vector<HttpReqArg> args; args.reserve(4); args.emplace_back("shipping_query_id", shippingQueryId); |