diff --git a/include/tgbot/types/Message.h b/include/tgbot/types/Message.h index cde5aae94..700f5d161 100644 --- a/include/tgbot/types/Message.h +++ b/include/tgbot/types/Message.h @@ -263,6 +263,11 @@ class Message { * @brief Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons. */ InlineKeyboardMarkup::Ptr replyMarkup; + + /** + * @brief Optional. Message is automatically forwarded from bounded channel. + */ + bool automaticForward = false; }; } diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index b96068e8a..13ae5d433 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -161,6 +161,7 @@ Message::Ptr TgTypeParser::parseJsonAndGetMessage(const ptree& data) const { result->successfulPayment = tryParseJson(&TgTypeParser::parseJsonAndGetSuccessfulPayment, data, "successful_payment"); result->connectedWebsite = data.get("connected_website", ""); result->replyMarkup = tryParseJson(&TgTypeParser::parseJsonAndGetInlineKeyboardMarkup, data, "reply_markup"); + result->automaticForward = data.get("is_automatic_forward", false); return result; }