From 075d2a5685ebd116916163d4184f53a0789b797b Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Thu, 9 Dec 2021 00:13:23 +0800 Subject: Add is_automatic_forward property to Message object --- src/TgTypeParser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index b96068e..13ae5d4 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; } -- cgit v1.2.3