diff options
author | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2022-09-03 22:41:05 +0200 |
---|---|---|
committer | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2022-09-03 22:41:05 +0200 |
commit | c17ab6fb6574bdea6fc9011be0651dc74aa6a53e (patch) | |
tree | 760d233b6a76035d13c64388505210b77869fff6 /src/types | |
parent | ce50cefc0a7b9aea99344a4b0a418544e2deca4a (diff) |
Update to API 5.0
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/InputMedia.cpp | 15 | ||||
-rw-r--r-- | src/types/InputMessageContent.cpp | 13 |
2 files changed, 28 insertions, 0 deletions
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..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 <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"; |