summaryrefslogtreecommitdiff
path: root/src/TgTypeParser.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <reo7sp@users.noreply.github.com>2017-03-21 18:50:45 +0300
committerGitHub <noreply@github.com>2017-03-21 18:50:45 +0300
commit4d9e96d9c91e1faeefb67de2164c026f84be020e (patch)
tree60af55841a59d7af13bb492d248e0744478e8056 /src/TgTypeParser.cpp
parent1c7d4c17062644d28f485b0ff6cbc213e975ac29 (diff)
parent156c087f3eeeeffb949ae6a572dd7b52815eb0e5 (diff)
Merge pull request #43 from kukin-konstantin/master
fix errors and new function
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r--src/TgTypeParser.cpp2
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;
}