From b68611144a92b266ab20b7db8fbce723bb499b70 Mon Sep 17 00:00:00 2001 From: kukin-konstantin Date: Mon, 20 Mar 2017 18:43:36 +0300 Subject: fix errors --- src/TgTypeParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/TgTypeParser.cpp') 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("width"); result->height = data.get("height"); result->thumb = tryParseJson(&TgTypeParser::parseJsonAndGetPhotoSize, data, "thumb"); - result->emoji = data.get("emoji"); + result->emoji = data.get("emoji", ""); result->fileSize = data.get("file_size", 0); return result; } -- cgit v1.2.3