From 5d0073e58f5b9f6dcce20b68b8d7ae54b5693033 Mon Sep 17 00:00:00 2001 From: Andrea Barbadoro Date: Mon, 7 Nov 2016 10:32:35 +0100 Subject: added call to parse MessageEntitiy added call to parse MessageEntitiy when parsing Message --- src/TgTypeParser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/TgTypeParser.cpp') diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index 63ff3ce..174afe9 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -121,6 +121,7 @@ Message::Ptr TgTypeParser::parseJsonAndGetMessage(const ptree& data) const { result->forwardDate = data.get("forward_date", 0); result->replyToMessage = tryParseJson(&TgTypeParser::parseJsonAndGetMessage, data, "reply_to_message"); result->text = data.get("text", ""); + result->entities = parseJsonAndGetArray(&TgTypeParser::parseJsonAndGetEntity, data, "entities"); result->audio = tryParseJson