From c17ab6fb6574bdea6fc9011be0651dc74aa6a53e Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Sat, 3 Sep 2022 22:41:05 +0200 Subject: Update to API 5.0 --- src/types/InputMedia.cpp | 15 +++++++++++++++ src/types/InputMessageContent.cpp | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/types/InputMedia.cpp create mode 100644 src/types/InputMessageContent.cpp (limited to 'src/types') 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 + +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..8f6d69d --- /dev/null +++ b/src/types/InputMessageContent.cpp @@ -0,0 +1,13 @@ +#include "tgbot/types/InputTextMessageContent.h" +#include "tgbot/types/InputLocationMessageContent.h" +#include "tgbot/types/InputVenueMessageContent.h" +#include "tgbot/types/InputContactMessageContent.h" + +#include + +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"; -- cgit v1.2.3 From 38f8755a35e696c52c3bae6aceb19513b73d41af Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Sun, 4 Sep 2022 17:16:56 +0200 Subject: Update to API 5.2 --- src/types/InputMessageContent.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/types') diff --git a/src/types/InputMessageContent.cpp b/src/types/InputMessageContent.cpp index 8f6d69d..2f54e00 100644 --- a/src/types/InputMessageContent.cpp +++ b/src/types/InputMessageContent.cpp @@ -2,6 +2,7 @@ #include "tgbot/types/InputLocationMessageContent.h" #include "tgbot/types/InputVenueMessageContent.h" #include "tgbot/types/InputContactMessageContent.h" +#include "tgbot/types/InputInvoiceMessageContent.h" #include @@ -11,3 +12,4 @@ 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"; -- cgit v1.2.3 From 5492d26d21d09dc9cc3551f32a8eab7a2e783e3c Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Sun, 4 Sep 2022 20:33:21 +0200 Subject: Update to API 5.3 --- src/types/BotCommandScope.cpp | 19 +++++++++++++++++++ src/types/ChatMember.cpp | 17 +++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/types/BotCommandScope.cpp create mode 100644 src/types/ChatMember.cpp (limited to 'src/types') 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 + +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 + +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"; -- cgit v1.2.3