summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Morozenkov <reo7sp@users.noreply.github.com>2016-11-07 16:01:36 +0300
committerGitHub <noreply@github.com>2016-11-07 16:01:36 +0300
commit4d434eaa5fe9936dde30df7a3783a2117e023d4a (patch)
tree81a43ab85ff7bb0e5faafa01dd2a48f2724b4a76
parent305471cb6a60b6033babf11f662ba93205acce23 (diff)
parent5d0073e58f5b9f6dcce20b68b8d7ae54b5693033 (diff)
Merge pull request #27 from andijcr/master
added call to parse MessageEntitiy
-rw-r--r--src/TgTypeParser.cpp1
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");