From b5b5cd9e88fc5a87f196e54144b163b4729570d1 Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Sat, 20 Apr 2024 14:17:26 +0200 Subject: Update to Bot API 7.0 --- src/types/ChatBoostSource.cpp | 11 +++++++++++ src/types/MessageOrigin.cpp | 13 +++++++++++++ src/types/ReactionType.cpp | 9 +++++++++ 3 files changed, 33 insertions(+) create mode 100644 src/types/ChatBoostSource.cpp create mode 100644 src/types/MessageOrigin.cpp create mode 100644 src/types/ReactionType.cpp (limited to 'src/types') diff --git a/src/types/ChatBoostSource.cpp b/src/types/ChatBoostSource.cpp new file mode 100644 index 0000000..84417b6 --- /dev/null +++ b/src/types/ChatBoostSource.cpp @@ -0,0 +1,11 @@ +#include "tgbot/types/ChatBoostSourcePremium.h" +#include "tgbot/types/ChatBoostSourceGiftCode.h" +#include "tgbot/types/ChatBoostSourceGiveaway.h" + +#include + +using namespace TgBot; + +const std::string ChatBoostSourcePremium::SOURCE = "premium"; +const std::string ChatBoostSourceGiftCode::SOURCE = "gift_code"; +const std::string ChatBoostSourceGiveaway::SOURCE = "giveaway"; diff --git a/src/types/MessageOrigin.cpp b/src/types/MessageOrigin.cpp new file mode 100644 index 0000000..c2471d9 --- /dev/null +++ b/src/types/MessageOrigin.cpp @@ -0,0 +1,13 @@ +#include "tgbot/types/MessageOriginUser.h" +#include "tgbot/types/MessageOriginHiddenUser.h" +#include "tgbot/types/MessageOriginChat.h" +#include "tgbot/types/MessageOriginChannel.h" + +#include + +using namespace TgBot; + +const std::string MessageOriginUser::TYPE = "user"; +const std::string MessageOriginHiddenUser::TYPE = "hidden_user"; +const std::string MessageOriginChat::TYPE = "chat"; +const std::string MessageOriginChannel::TYPE = "channel"; diff --git a/src/types/ReactionType.cpp b/src/types/ReactionType.cpp new file mode 100644 index 0000000..3dd984b --- /dev/null +++ b/src/types/ReactionType.cpp @@ -0,0 +1,9 @@ +#include "tgbot/types/ReactionTypeEmoji.h" +#include "tgbot/types/ReactionTypeCustomEmoji.h" + +#include + +using namespace TgBot; + +const std::string ReactionTypeEmoji::TYPE = "emoji"; +const std::string ReactionTypeCustomEmoji::TYPE = "custom_emoji"; -- cgit v1.2.3