summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tgbot/Bot.h7
-rw-r--r--include/tgbot/net/TgLongPoll.h11
-rw-r--r--src/net/TgLongPoll.cpp4
3 files changed, 15 insertions, 7 deletions
diff --git a/include/tgbot/Bot.h b/include/tgbot/Bot.h
index bf77380..d966c1b 100644
--- a/include/tgbot/Bot.h
+++ b/include/tgbot/Bot.h
@@ -1,15 +1,16 @@
#ifndef TGBOT_CPP_BOT_H
#define TGBOT_CPP_BOT_H
-#include <memory>
-#include <string>
-#include <utility>
#include "tgbot/Api.h"
#include "tgbot/EventBroadcaster.h"
#include "tgbot/EventHandler.h"
#include "tgbot/net/HttpClient.h"
#include "tgbot/net/BoostHttpOnlySslClient.h"
+#include <memory>
+#include <string>
+#include <utility>
+
namespace TgBot {
/**
diff --git a/include/tgbot/net/TgLongPoll.h b/include/tgbot/net/TgLongPoll.h
index 017c012..53214fb 100644
--- a/include/tgbot/net/TgLongPoll.h
+++ b/include/tgbot/net/TgLongPoll.h
@@ -2,13 +2,16 @@
#define TGBOT_TGLONGPOLL_H
#include <cstdint>
-
-#include "tgbot/Bot.h"
-#include "tgbot/Api.h"
-#include "tgbot/EventHandler.h"
+#include <memory>
+#include <string>
+#include <vector>
namespace TgBot {
+class Api;
+class Bot;
+class EventHandler;
+
/**
* @brief This class handles long polling and updates parsing.
*
diff --git a/src/net/TgLongPoll.cpp b/src/net/TgLongPoll.cpp
index 6d266f8..98575de 100644
--- a/src/net/TgLongPoll.cpp
+++ b/src/net/TgLongPoll.cpp
@@ -1,5 +1,9 @@
#include "tgbot/net/TgLongPoll.h"
+#include "tgbot/Api.h"
+#include "tgbot/Bot.h"
+#include "tgbot/EventHandler.h"
+
#include <cstdint>
#include <utility>