diff options
author | Andrea Barbadoro <andij.cr@gmail.com> | 2016-11-07 10:32:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-07 10:32:35 +0100 |
commit | 5d0073e58f5b9f6dcce20b68b8d7ae54b5693033 (patch) | |
tree | 81a43ab85ff7bb0e5faafa01dd2a48f2724b4a76 /src/TgTypeParser.cpp | |
parent | 54843ab5d5ddfa695f6873b0adb53ec333b9491f (diff) |
added call to parse MessageEntitiy
added call to parse MessageEntitiy when parsing Message
Diffstat (limited to 'src/TgTypeParser.cpp')
-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 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<Message>(&TgTypeParser::parseJsonAndGetMessage, data, "reply_to_message"); result->text = data.get("text", ""); + result->entities = parseJsonAndGetArray<MessageEntity>(&TgTypeParser::parseJsonAndGetEntity, data, "entities"); result->audio = tryParseJson<Audio>(&TgTypeParser::parseJsonAndGetAudio, data, "audio"); result->document = tryParseJson<Document>(&TgTypeParser::parseJsonAndGetDocument, data, "document"); result->photo = parseJsonAndGetArray<PhotoSize>(&TgTypeParser::parseJsonAndGetPhotoSize, data, "photo"); |