summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tgbot/Api.h1
-rw-r--r--include/tgbot/EventBroadcaster.h1
-rw-r--r--include/tgbot/TgTypeParser.h4
-rw-r--r--include/tgbot/net/BoostHttpOnlySslClient.h1
-rw-r--r--include/tgbot/net/CurlHttpClient.h1
-rw-r--r--include/tgbot/net/HttpClient.h1
-rw-r--r--include/tgbot/net/HttpReqArg.h1
-rw-r--r--include/tgbot/net/HttpServer.h4
-rw-r--r--include/tgbot/net/TgWebhookLocalServer.h2
-rw-r--r--include/tgbot/net/TgWebhookServer.h2
-rw-r--r--include/tgbot/net/TgWebhookTcpServer.h2
-rw-r--r--samples/echobot-curl-client/src/main.cpp1
-rw-r--r--samples/echobot-submodule/src/main.cpp1
-rw-r--r--samples/echobot-webhook-server/src/main.cpp1
-rw-r--r--samples/echobot/src/main.cpp1
-rw-r--r--samples/inline-keyboard/src/main.cpp1
-rw-r--r--samples/photo/src/main.cpp1
-rw-r--r--src/Api.cpp5
-rw-r--r--src/Bot.cpp3
-rw-r--r--src/EventHandler.cpp1
-rw-r--r--src/TgException.cpp2
-rw-r--r--src/TgTypeParser.cpp3
-rw-r--r--src/net/BoostHttpOnlySslClient.cpp1
-rw-r--r--src/net/CurlHttpClient.cpp3
-rw-r--r--src/net/HttpParser.cpp4
-rw-r--r--src/net/TgLongPoll.cpp2
-rw-r--r--src/net/Url.cpp1
-rw-r--r--src/tools/FileTools.cpp1
-rw-r--r--src/tools/StringTools.cpp2
-rw-r--r--src/types/InlineQueryResult.cpp2
-rw-r--r--src/types/InputFile.cpp3
31 files changed, 53 insertions, 6 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h
index ac37231..50e10ed 100644
--- a/include/tgbot/Api.h
+++ b/include/tgbot/Api.h
@@ -2,6 +2,7 @@
#define TGBOT_CPP_API_H
#include <cstdint>
+#include <memory>
#include <string>
#include <vector>
diff --git a/include/tgbot/EventBroadcaster.h b/include/tgbot/EventBroadcaster.h
index 978a6fe..86a82be 100644
--- a/include/tgbot/EventBroadcaster.h
+++ b/include/tgbot/EventBroadcaster.h
@@ -1,6 +1,7 @@
#ifndef TGBOT_EVENTBROADCASTER_H
#define TGBOT_EVENTBROADCASTER_H
+#include <initializer_list>
#include <string>
#include <functional>
#include <vector>
diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h
index 02f8ee5..91e99ef 100644
--- a/include/tgbot/TgTypeParser.h
+++ b/include/tgbot/TgTypeParser.h
@@ -1,7 +1,11 @@
#ifndef TGBOT_CPP_TGTYPEPARSER_H
#define TGBOT_CPP_TGTYPEPARSER_H
+#include <memory>
+#include <sstream>
#include <string>
+#include <vector>
+#include <utility>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
diff --git a/include/tgbot/net/BoostHttpOnlySslClient.h b/include/tgbot/net/BoostHttpOnlySslClient.h
index 594b3fe..9ddbba2 100644
--- a/include/tgbot/net/BoostHttpOnlySslClient.h
+++ b/include/tgbot/net/BoostHttpOnlySslClient.h
@@ -2,6 +2,7 @@
#define TGBOT_BOOSTHTTPCLIENT_H
#include <string>
+#include <vector>
#include <boost/asio.hpp>
diff --git a/include/tgbot/net/CurlHttpClient.h b/include/tgbot/net/CurlHttpClient.h
index 202cc40..cf120a4 100644
--- a/include/tgbot/net/CurlHttpClient.h
+++ b/include/tgbot/net/CurlHttpClient.h
@@ -4,6 +4,7 @@
#ifdef HAVE_CURL
#include <string>
+#include <vector>
#include <curl/curl.h>
diff --git a/include/tgbot/net/HttpClient.h b/include/tgbot/net/HttpClient.h
index d9c72be..8542153 100644
--- a/include/tgbot/net/HttpClient.h
+++ b/include/tgbot/net/HttpClient.h
@@ -2,6 +2,7 @@
#define TGBOT_HTTPCLIENT_H
#include <string>
+#include <vector>
#include "tgbot/net/Url.h"
#include "tgbot/net/HttpReqArg.h"
diff --git a/include/tgbot/net/HttpReqArg.h b/include/tgbot/net/HttpReqArg.h
index 72dfd7d..30ab407 100644
--- a/include/tgbot/net/HttpReqArg.h
+++ b/include/tgbot/net/HttpReqArg.h
@@ -4,7 +4,6 @@
#include "tgbot/export.h"
#include <string>
-#include <utility>
#include <vector>
#include <functional>
diff --git a/include/tgbot/net/HttpServer.h b/include/tgbot/net/HttpServer.h
index ccee077..2eb229a 100644
--- a/include/tgbot/net/HttpServer.h
+++ b/include/tgbot/net/HttpServer.h
@@ -2,8 +2,12 @@
#define TGBOT_HTTPSERVER_H
#include <cstddef>
+#include <exception>
+#include <functional>
#include <iostream>
+#include <memory>
#include <string>
+#include <unordered_map>
#include <utility>
#include <boost/asio.hpp>
diff --git a/include/tgbot/net/TgWebhookLocalServer.h b/include/tgbot/net/TgWebhookLocalServer.h
index 2a64374..4f1dc2b 100644
--- a/include/tgbot/net/TgWebhookLocalServer.h
+++ b/include/tgbot/net/TgWebhookLocalServer.h
@@ -3,6 +3,8 @@
#ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS
+#include <string>
+
#include "tgbot/net/TgWebhookServer.h"
namespace TgBot {
diff --git a/include/tgbot/net/TgWebhookServer.h b/include/tgbot/net/TgWebhookServer.h
index 2f3c5b8..f0b08b3 100644
--- a/include/tgbot/net/TgWebhookServer.h
+++ b/include/tgbot/net/TgWebhookServer.h
@@ -1,6 +1,8 @@
#ifndef TGBOT_TGHTTPSERVER_H
#define TGBOT_TGHTTPSERVER_H
+#include <string>
+#include <unordered_map>
#include <utility>
#include "tgbot/Bot.h"
diff --git a/include/tgbot/net/TgWebhookTcpServer.h b/include/tgbot/net/TgWebhookTcpServer.h
index 28ae8aa..53eec17 100644
--- a/include/tgbot/net/TgWebhookTcpServer.h
+++ b/include/tgbot/net/TgWebhookTcpServer.h
@@ -1,6 +1,8 @@
#ifndef TGBOT_TGWEBHOOKTCPSERVER_H
#define TGBOT_TGWEBHOOKTCPSERVER_H
+#include <string>
+
#include "tgbot/net/TgWebhookServer.h"
namespace TgBot {
diff --git a/samples/echobot-curl-client/src/main.cpp b/samples/echobot-curl-client/src/main.cpp
index 630dad8..a957011 100644
--- a/samples/echobot-curl-client/src/main.cpp
+++ b/samples/echobot-curl-client/src/main.cpp
@@ -2,6 +2,7 @@
#include <cstdio>
#include <cstdlib>
#include <exception>
+#include <string>
#include <tgbot/tgbot.h>
diff --git a/samples/echobot-submodule/src/main.cpp b/samples/echobot-submodule/src/main.cpp
index 966ae6f..c26cbdf 100644
--- a/samples/echobot-submodule/src/main.cpp
+++ b/samples/echobot-submodule/src/main.cpp
@@ -2,6 +2,7 @@
#include <cstdio>
#include <cstdlib>
#include <exception>
+#include <string>
#include <tgbot/tgbot.h>
diff --git a/samples/echobot-webhook-server/src/main.cpp b/samples/echobot-webhook-server/src/main.cpp
index d51246d..2919c2e 100644
--- a/samples/echobot-webhook-server/src/main.cpp
+++ b/samples/echobot-webhook-server/src/main.cpp
@@ -2,6 +2,7 @@
#include <cstdio>
#include <cstdlib>
#include <exception>
+#include <string>
#include <tgbot/tgbot.h>
diff --git a/samples/echobot/src/main.cpp b/samples/echobot/src/main.cpp
index 966ae6f..c26cbdf 100644
--- a/samples/echobot/src/main.cpp
+++ b/samples/echobot/src/main.cpp
@@ -2,6 +2,7 @@
#include <cstdio>
#include <cstdlib>
#include <exception>
+#include <string>
#include <tgbot/tgbot.h>
diff --git a/samples/inline-keyboard/src/main.cpp b/samples/inline-keyboard/src/main.cpp
index 70cf7c7..2e3ec68 100644
--- a/samples/inline-keyboard/src/main.cpp
+++ b/samples/inline-keyboard/src/main.cpp
@@ -2,6 +2,7 @@
#include <cstdio>
#include <cstdlib>
#include <exception>
+#include <string>
#include <tgbot/tgbot.h>
diff --git a/samples/photo/src/main.cpp b/samples/photo/src/main.cpp
index cca31f0..d6bfe83 100644
--- a/samples/photo/src/main.cpp
+++ b/samples/photo/src/main.cpp
@@ -2,6 +2,7 @@
#include <cstdio>
#include <cstdlib>
#include <exception>
+#include <string>
#include <tgbot/tgbot.h>
diff --git a/src/Api.cpp b/src/Api.cpp
index c1b112c..4700281 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -1,9 +1,12 @@
#include "tgbot/Api.h"
#include <cstdint>
-#include <tgbot/tools/StringTools.h>
+#include <string>
+#include <vector>
#include <utility>
+#include "tgbot/tools/StringTools.h"
+
#include "tgbot/TgException.h"
#include "tgbot/TgTypeParser.h"
diff --git a/src/Bot.cpp b/src/Bot.cpp
index b1e1ea5..e0acbdb 100644
--- a/src/Bot.cpp
+++ b/src/Bot.cpp
@@ -2,6 +2,9 @@
#include "tgbot/EventBroadcaster.h"
+#include <memory>
+#include <string>
+
namespace TgBot {
Bot::Bot(std::string token, const HttpClient& httpClient)
diff --git a/src/EventHandler.cpp b/src/EventHandler.cpp
index 43f2eb1..cad3e4f 100644
--- a/src/EventHandler.cpp
+++ b/src/EventHandler.cpp
@@ -2,6 +2,7 @@
#include <algorithm>
#include <cstddef>
+#include <string>
using namespace std;
diff --git a/src/TgException.cpp b/src/TgException.cpp
index 03a942c..e61e09c 100644
--- a/src/TgException.cpp
+++ b/src/TgException.cpp
@@ -1,5 +1,7 @@
#include "tgbot/TgException.h"
+#include <string>
+
namespace TgBot {
TgBot::TgException::TgException(const std::string& description) : runtime_error(description) {
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp
index 4d91d28..06a2b2a 100644
--- a/src/TgTypeParser.cpp
+++ b/src/TgTypeParser.cpp
@@ -1,5 +1,8 @@
#include "tgbot/TgTypeParser.h"
+#include <memory>
+#include <string>
+
using namespace std;
using namespace boost::property_tree;
diff --git a/src/net/BoostHttpOnlySslClient.cpp b/src/net/BoostHttpOnlySslClient.cpp
index 836b06a..6cf906f 100644
--- a/src/net/BoostHttpOnlySslClient.cpp
+++ b/src/net/BoostHttpOnlySslClient.cpp
@@ -1,6 +1,7 @@
#include "tgbot/net/BoostHttpOnlySslClient.h"
#include <cstddef>
+#include <vector>
#include <boost/asio/ssl.hpp>
diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp
index 6255974..5fde377 100644
--- a/src/net/CurlHttpClient.cpp
+++ b/src/net/CurlHttpClient.cpp
@@ -3,8 +3,7 @@
#include "tgbot/net/CurlHttpClient.h"
#include <cstddef>
-
-#include <boost/asio/ssl.hpp>
+#include <string>
namespace TgBot {
diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp
index 2d3085f..2f72609 100644
--- a/src/net/HttpParser.cpp
+++ b/src/net/HttpParser.cpp
@@ -1,7 +1,9 @@
#include "tgbot/net/HttpParser.h"
#include <cstddef>
-#include <cstdint>
+#include <string>
+#include <vector>
+#include <unordered_map>
#include <boost/algorithm/string.hpp>
diff --git a/src/net/TgLongPoll.cpp b/src/net/TgLongPoll.cpp
index 98575de..a7b4fcb 100644
--- a/src/net/TgLongPoll.cpp
+++ b/src/net/TgLongPoll.cpp
@@ -5,6 +5,8 @@
#include "tgbot/EventHandler.h"
#include <cstdint>
+#include <memory>
+#include <vector>
#include <utility>
namespace TgBot {
diff --git a/src/net/Url.cpp b/src/net/Url.cpp
index 95e31c7..4b46f41 100644
--- a/src/net/Url.cpp
+++ b/src/net/Url.cpp
@@ -1,6 +1,7 @@
#include "tgbot/net/Url.h"
#include <cstddef>
+#include <string>
using namespace std;
diff --git a/src/tools/FileTools.cpp b/src/tools/FileTools.cpp
index d2c303c..bb5b7b5 100644
--- a/src/tools/FileTools.cpp
+++ b/src/tools/FileTools.cpp
@@ -2,6 +2,7 @@
#include <fstream>
#include <sstream>
+#include <string>
using namespace std;
diff --git a/src/tools/StringTools.cpp b/src/tools/StringTools.cpp
index f49a78e..8b8f4da 100644
--- a/src/tools/StringTools.cpp
+++ b/src/tools/StringTools.cpp
@@ -1,9 +1,9 @@
#include "tgbot/tools/StringTools.h"
-#include <cstdlib>
#include <iomanip>
#include <cstdio>
#include <random>
+#include <string>
using namespace std;
diff --git a/src/types/InlineQueryResult.cpp b/src/types/InlineQueryResult.cpp
index 3d4ea6e..0993ec2 100644
--- a/src/types/InlineQueryResult.cpp
+++ b/src/types/InlineQueryResult.cpp
@@ -19,6 +19,8 @@
#include "tgbot/types/InlineQueryResultPhoto.h"
#include "tgbot/types/InlineQueryResultVideo.h"
+#include <string>
+
using namespace TgBot;
const std::string InlineQueryResultCachedAudio::TYPE = "audio";
diff --git a/src/types/InputFile.cpp b/src/types/InputFile.cpp
index 0ca1991..c74c73e 100644
--- a/src/types/InputFile.cpp
+++ b/src/types/InputFile.cpp
@@ -2,6 +2,9 @@
#include "tgbot/tools/StringTools.h"
#include "tgbot/tools/FileTools.h"
+#include <memory>
+#include <string>
+
using namespace std;
namespace TgBot {