diff options
author | Mio <a771644612@live.com> | 2018-04-20 14:43:48 +0800 |
---|---|---|
committer | Mio <a771644612@live.com> | 2018-04-20 14:43:48 +0800 |
commit | 7aeba900f0d9456301ef5b60b00085b8ce6c1e49 (patch) | |
tree | 5251720081829f8a85c18ce7ea34a6f749364109 /src/TgTypeParser.cpp | |
parent | 0865f05609ee0231e791c70165473450cfd6c1e9 (diff) |
fix the default value for caption
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 cd30b02..84a83df 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -140,7 +140,7 @@ Message::Ptr TgTypeParser::parseJsonAndGetMessage(const ptree& data) const { result->newChatPhoto = parseJsonAndGetArray<PhotoSize>(&TgTypeParser::parseJsonAndGetPhotoSize, data, "new_chat_photo"); result->deleteChatPhoto = data.get("delete_chat_photo", false); result->groupChatCreated = data.get("group_chat_created", false); - result->caption = data.get("caption", false); + result->caption = data.get("caption", ""); result->supergroupChatCreated = data.get("supergroup_chat_created", false); result->channelChatCreated = data.get("channel_chat_created", false); result->migrateToChatId = data.get<int64_t>("migrate_to_chat_id", 0); |