From fea0c2ffb669923959df17ba904448e159d22489 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Fri, 22 Jun 2018 21:44:52 +0900 Subject: Fix typo (std::vector contains Object::Ptr) Thanks VSCode --- src/Api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Api.cpp') 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& prices, + const std::string& providerToken, const std::string& startParameter, const std::string& currency, const std::vector& 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& shippingOptions, const std::string& errorMessage) const { +bool Api::answerShippingQuery(const std::string& shippingQueryId, bool ok, const std::vector& shippingOptions, const std::string& errorMessage) const { vector args; args.reserve(4); args.emplace_back("shipping_query_id", shippingQueryId); -- cgit v1.2.3