diff options
author | JellyBrick <shlee1503@naver.com> | 2019-03-01 13:29:28 +0900 |
---|---|---|
committer | JellyBrick <shlee1503@naver.com> | 2019-03-01 13:29:28 +0900 |
commit | f7164fd8a42077839d1c5e0c3040fda2b96b6f18 (patch) | |
tree | f97bb8a9ac135399dbc87074185a60b3177d9a96 /include/tgbot | |
parent | 499e68a8a0cc4d7be5b441bb268b694aedf4a496 (diff) |
Fix #57 #92
Diffstat (limited to 'include/tgbot')
-rw-r--r-- | include/tgbot/TgTypeParser.h | 4 | ||||
-rw-r--r-- | include/tgbot/types/Voice.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h index 06e7890..dbfa27e 100644 --- a/include/tgbot/TgTypeParser.h +++ b/include/tgbot/TgTypeParser.h @@ -38,6 +38,7 @@ #include "tgbot/types/StickerSet.h" #include "tgbot/types/MaskPosition.h" #include "tgbot/types/Video.h" +#include "tgbot/types/Voice.h" #include "tgbot/types/VideoNote.h" #include "tgbot/types/Contact.h" #include "tgbot/types/Location.h" @@ -147,6 +148,9 @@ public: Video::Ptr parseJsonAndGetVideo(const boost::property_tree::ptree& data) const; std::string parseVideo(const Video::Ptr& object) const; + Voice::Ptr parseJsonAndGetVoice(const boost::property_tree::ptree& data) const; + std::string parseVoice(const Voice::Ptr& object) const; + VideoNote::Ptr parseJsonAndGetVideoNote(const boost::property_tree::ptree& data) const; std::string parseVideoNote(const VideoNote::Ptr& object) const; diff --git a/include/tgbot/types/Voice.h b/include/tgbot/types/Voice.h index 0957349..d1e1198 100644 --- a/include/tgbot/types/Voice.h +++ b/include/tgbot/types/Voice.h @@ -22,7 +22,7 @@ public: /** * @brief Unique identifier for this file. */ - std::string file_id; + std::string fileId; /** * @brief Duration of the audio in seconds as defined by sender. @@ -32,12 +32,12 @@ public: /** * @brief Optional. MIME type of the file as defined by sender; */ - std::string mime_type; + std::string mimeType; /** * @brief Optional. File size. */ - int32_t file_size; + int32_t fileSize; }; } |