summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
-rw-r--r--include/tgbot/types/InlineKeyboardButton.h4
-rw-r--r--include/tgbot/types/Poll.h4
-rw-r--r--include/tgbot/types/PollOption.h4
4 files changed, 9 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 881ec0f..908cf69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,8 +33,7 @@ set(SRC_LIST
src/tools/FileTools.cpp
src/tools/StringTools.cpp
src/types/InlineQueryResult.cpp
- src/types/InputFile.cpp
- include/tgbot/types/Poll.h include/tgbot/types/PollOption.h include/tgbot/types/LoginUrl.h include/tgbot/types/ChatPermissions.h)
+ src/types/InputFile.cpp)
# libs
## threads
diff --git a/include/tgbot/types/InlineKeyboardButton.h b/include/tgbot/types/InlineKeyboardButton.h
index f02d788..f274825 100644
--- a/include/tgbot/types/InlineKeyboardButton.h
+++ b/include/tgbot/types/InlineKeyboardButton.h
@@ -33,8 +33,8 @@ public:
std::string url;
/**
- * @brief Optional. An HTTP URL used to automatically authorize the user.
- */
+ * @brief Optional. An HTTP URL used to automatically authorize the user.
+ */
LoginUrl::Ptr loginUrl;
/**
diff --git a/include/tgbot/types/Poll.h b/include/tgbot/types/Poll.h
index 11c3c07..e218997 100644
--- a/include/tgbot/types/Poll.h
+++ b/include/tgbot/types/Poll.h
@@ -28,13 +28,13 @@
#include <vector>
#include "tgbot/types/PollOption.h"
-namespace TgBot{
+namespace TgBot {
/**
* @brief This object represents a Poll.
*
* @ingroup types
*/
- class Poll{
+ class Poll {
public:
typedef std::shared_ptr<Poll> Ptr;
diff --git a/include/tgbot/types/PollOption.h b/include/tgbot/types/PollOption.h
index 52099f9..0d87870 100644
--- a/include/tgbot/types/PollOption.h
+++ b/include/tgbot/types/PollOption.h
@@ -27,6 +27,8 @@
#ifndef TGBOT_POLLOPTION_H
#define TGBOT_POLLOPTION_H
+namespace TgBot {
+
class PollOption {
public:
@@ -43,4 +45,6 @@ public:
int64_t voter_count;
};
+}
+
#endif //TGBOT_POLLOPTION_H