summaryrefslogtreecommitdiff
path: root/include/tgbot/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/tgbot/net')
-rw-r--r--include/tgbot/net/HttpParser.h2
-rw-r--r--include/tgbot/net/TgLongPoll.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/tgbot/net/HttpParser.h b/include/tgbot/net/HttpParser.h
index 3f1095b..fabeacf 100644
--- a/include/tgbot/net/HttpParser.h
+++ b/include/tgbot/net/HttpParser.h
@@ -14,7 +14,7 @@ class TGBOT_API HttpParser {
public:
std::string generateRequest(const Url& url, const std::vector<HttpReqArg>& args, bool isKeepAlive = false) const;
- std::string generateMultipartFormData(const std::vector<HttpReqArg>& args, const std::string& bondary) const;
+ std::string generateMultipartFormData(const std::vector<HttpReqArg>& args, const std::string& boundary) const;
std::string generateMultipartBoundary(const std::vector<HttpReqArg>& args) const;
std::string generateWwwFormUrlencoded(const std::vector<HttpReqArg>& args) const;
std::string generateResponse(const std::string& data, const std::string& mimeType, unsigned short statusCode, const std::string& statusStr, bool isKeepAlive) const;
diff --git a/include/tgbot/net/TgLongPoll.h b/include/tgbot/net/TgLongPoll.h
index b55338c..017c012 100644
--- a/include/tgbot/net/TgLongPoll.h
+++ b/include/tgbot/net/TgLongPoll.h
@@ -17,7 +17,7 @@ namespace TgBot {
class TGBOT_API TgLongPoll {
public:
- TgLongPoll(const Api* api, const EventHandler* eventHandler, std::int32_t, std::int32_t, const std::shared_ptr<std::vector<std::string>>&);
+ TgLongPoll(const Api* api, const EventHandler* eventHandler, std::int32_t, std::int32_t, std::shared_ptr<std::vector<std::string>>);
TgLongPoll(const Bot& bot, std::int32_t = 100, std::int32_t = 10, const std::shared_ptr<std::vector<std::string>>& = nullptr);
/**
@@ -31,7 +31,7 @@ private:
std::int32_t _lastUpdateId = 0;
std::int32_t _limit;
std::int32_t _timeout;
- std::shared_ptr<std::vector<std::string>> _allowupdates;
+ std::shared_ptr<std::vector<std::string>> _allowUpdates;
};
}