From c096345f5369d76ee7d299181b369c5e7bb1aba9 Mon Sep 17 00:00:00 2001 From: Bader Date: Fri, 22 Sep 2023 23:27:50 +0100 Subject: [PATCH] Progress on objects Message and Update their JSON serialization --- include/tgbotxx/objects/Message.hpp | 12 +++-- include/tgbotxx/objects/Update.hpp | 77 +++++++++++++++-------------- 2 files changed, 47 insertions(+), 42 deletions(-) diff --git a/include/tgbotxx/objects/Message.hpp b/include/tgbotxx/objects/Message.hpp index b0b3d9a3a..c375256c5 100644 --- a/include/tgbotxx/objects/Message.hpp +++ b/include/tgbotxx/objects/Message.hpp @@ -1,9 +1,9 @@ #pragma once #include -#include "Object.hpp" -#include "User.hpp" -#include "MessageEntity.hpp" -#include "Animation.hpp" +#include +#include +#include +#include namespace tgbotxx { /// @brief This object represents a message. @@ -93,6 +93,10 @@ namespace tgbotxx { /// @brief Optional. Message is an animation, information about the animation. For backward compatibility, /// when this field is set, the document field will also be set Ptr animation; + + /// @brief Optional. Message is an audio file, information about the file + Ptr