diff options
author | kukin-konstantin <kukin.konstantin@gmail.com> | 2017-03-20 18:43:36 +0300 |
---|---|---|
committer | kukin-konstantin <kukin.konstantin@gmail.com> | 2017-03-20 18:55:09 +0300 |
commit | b68611144a92b266ab20b7db8fbce723bb499b70 (patch) | |
tree | e5573aaf74443c0542ed684ce5bdadf265e35858 /src/TgTypeParser.cpp | |
parent | 1c7d4c17062644d28f485b0ff6cbc213e975ac29 (diff) |
fix errors
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r-- | src/TgTypeParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index eeaba5e..cd30b02 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -270,7 +270,7 @@ Sticker::Ptr TgTypeParser::parseJsonAndGetSticker(const ptree& data) const { result->width = data.get<int32_t>("width"); result->height = data.get<int32_t>("height"); result->thumb = tryParseJson<PhotoSize>(&TgTypeParser::parseJsonAndGetPhotoSize, data, "thumb"); - result->emoji = data.get<string>("emoji"); + result->emoji = data.get("emoji", ""); result->fileSize = data.get("file_size", 0); return result; } |