summaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2022-09-05 10:52:00 +0300
committerGitHub <noreply@github.com>2022-09-05 10:52:00 +0300
commit2e1c2337c07be587dc260c7bb3150d63bd0a71a4 (patch)
treef64bf217f53f3b5ff2ba48711ff05cf50ca1aa3a /src/types
parentce50cefc0a7b9aea99344a4b0a418544e2deca4a (diff)
parent5c9062ab3c3bff1fa1fb5b5288dda0cf5d0acf54 (diff)
Merge pull request #224 from llnulldisk/master
Update to API 5.5
Diffstat (limited to 'src/types')
-rw-r--r--src/types/BotCommandScope.cpp19
-rw-r--r--src/types/ChatMember.cpp17
-rw-r--r--src/types/InputMedia.cpp15
-rw-r--r--src/types/InputMessageContent.cpp15
4 files changed, 66 insertions, 0 deletions
diff --git a/src/types/BotCommandScope.cpp b/src/types/BotCommandScope.cpp
new file mode 100644
index 0000000..0e52dd8
--- /dev/null
+++ b/src/types/BotCommandScope.cpp
@@ -0,0 +1,19 @@
+#include "tgbot/types/BotCommandScopeDefault.h"
+#include "tgbot/types/BotCommandScopeAllPrivateChats.h"
+#include "tgbot/types/BotCommandScopeAllGroupChats.h"
+#include "tgbot/types/BotCommandScopeAllChatAdministrators.h"
+#include "tgbot/types/BotCommandScopeChat.h"
+#include "tgbot/types/BotCommandScopeChatAdministrators.h"
+#include "tgbot/types/BotCommandScopeChatMember.h"
+
+#include <string>
+
+using namespace TgBot;
+
+const std::string BotCommandScopeDefault::TYPE = "default";
+const std::string BotCommandScopeAllPrivateChats::TYPE = "all_private_chats";
+const std::string BotCommandScopeAllGroupChats::TYPE = "all_group_chats";
+const std::string BotCommandScopeAllChatAdministrators::TYPE = "all_chat_administrators";
+const std::string BotCommandScopeChat::TYPE = "chat";
+const std::string BotCommandScopeChatAdministrators::TYPE = "chat_administrators";
+const std::string BotCommandScopeChatMember::TYPE = "chat_member";
diff --git a/src/types/ChatMember.cpp b/src/types/ChatMember.cpp
new file mode 100644
index 0000000..7f5b704
--- /dev/null
+++ b/src/types/ChatMember.cpp
@@ -0,0 +1,17 @@
+#include "tgbot/types/ChatMemberOwner.h"
+#include "tgbot/types/ChatMemberAdministrator.h"
+#include "tgbot/types/ChatMemberMember.h"
+#include "tgbot/types/ChatMemberRestricted.h"
+#include "tgbot/types/ChatMemberLeft.h"
+#include "tgbot/types/ChatMemberBanned.h"
+
+#include <string>
+
+using namespace TgBot;
+
+const std::string ChatMemberOwner::STATUS = "creator";
+const std::string ChatMemberAdministrator::STATUS = "administrator";
+const std::string ChatMemberMember::STATUS = "member";
+const std::string ChatMemberRestricted::STATUS = "restricted";
+const std::string ChatMemberLeft::STATUS = "left";
+const std::string ChatMemberBanned::STATUS = "kicked";
diff --git a/src/types/InputMedia.cpp b/src/types/InputMedia.cpp
new file mode 100644
index 0000000..eff22df
--- /dev/null
+++ b/src/types/InputMedia.cpp
@@ -0,0 +1,15 @@
+#include "tgbot/types/InputMediaPhoto.h"
+#include "tgbot/types/InputMediaVideo.h"
+#include "tgbot/types/InputMediaAnimation.h"
+#include "tgbot/types/InputMediaAudio.h"
+#include "tgbot/types/InputMediaDocument.h"
+
+#include <string>
+
+using namespace TgBot;
+
+const std::string InputMediaPhoto::TYPE = "photo";
+const std::string InputMediaVideo::TYPE = "video";
+const std::string InputMediaAnimation::TYPE = "animation";
+const std::string InputMediaAudio::TYPE = "audio";
+const std::string InputMediaDocument::TYPE = "document";
diff --git a/src/types/InputMessageContent.cpp b/src/types/InputMessageContent.cpp
new file mode 100644
index 0000000..2f54e00
--- /dev/null
+++ b/src/types/InputMessageContent.cpp
@@ -0,0 +1,15 @@
+#include "tgbot/types/InputTextMessageContent.h"
+#include "tgbot/types/InputLocationMessageContent.h"
+#include "tgbot/types/InputVenueMessageContent.h"
+#include "tgbot/types/InputContactMessageContent.h"
+#include "tgbot/types/InputInvoiceMessageContent.h"
+
+#include <string>
+
+using namespace TgBot;
+
+const std::string InputTextMessageContent::TYPE = "text";
+const std::string InputLocationMessageContent::TYPE = "location";
+const std::string InputVenueMessageContent::TYPE = "venue";
+const std::string InputContactMessageContent::TYPE = "contact";
+const std::string InputInvoiceMessageContent::TYPE = "invoice";