diff options
author | Tindy X <49061470+tindy2013@users.noreply.github.com> | 2021-12-09 00:13:23 +0800 |
---|---|---|
committer | Tindy X <49061470+tindy2013@users.noreply.github.com> | 2021-12-09 00:13:23 +0800 |
commit | 075d2a5685ebd116916163d4184f53a0789b797b (patch) | |
tree | 5af7cd245ba26d95c97096ccc61f71166c34cf58 /src | |
parent | 6b38783cd1f6ef6292cdf972a35ba4b79e482aa9 (diff) |
Add is_automatic_forward property to Message object
Diffstat (limited to 'src')
-rw-r--r-- | src/TgTypeParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<SuccessfulPayment>(&TgTypeParser::parseJsonAndGetSuccessfulPayment, data, "successful_payment"); result->connectedWebsite = data.get("connected_website", ""); result->replyMarkup = tryParseJson<InlineKeyboardMarkup>(&TgTypeParser::parseJsonAndGetInlineKeyboardMarkup, data, "reply_markup"); + result->automaticForward = data.get("is_automatic_forward", false); return result; } |