From 7aeba900f0d9456301ef5b60b00085b8ce6c1e49 Mon Sep 17 00:00:00 2001 From: Mio Date: Fri, 20 Apr 2018 14:43:48 +0800 Subject: fix the default value for caption --- 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 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(&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("migrate_to_chat_id", 0); -- cgit v1.2.3