diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2019-12-05 00:50:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-05 00:50:28 +0300 |
commit | d873b1ec87c70449fffba336b2aeabb259885b21 (patch) | |
tree | 87ac36248432558291c1dece547b7f220ea8da96 /src/TgTypeParser.cpp | |
parent | 9148563cb333bb6a3127138541de2fc086ff743b (diff) | |
parent | 2318c534d4286436a668c5a33220dfc8d5b85686 (diff) |
Merge pull request #114 from YJBeetle/master
fix #113 InlineQueryResult json parse bug
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r-- | src/TgTypeParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index 4e31c94..daa7b4b 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -1723,12 +1723,13 @@ std::string TgTypeParser::parseInlineKeyboardButton(const InlineKeyboardButton:: } string result; result += '{'; + if(object->pay) + appendToJson(result, "pay", object->pay); appendToJson(result, "text", object->text); appendToJson(result, "url", object->url); appendToJson(result, "callback_data", object->callbackData); appendToJson(result, "switch_inline_query", object->switchInlineQuery); appendToJson(result, "switch_inline_query_current_chat", object->switchInlineQueryCurrentChat); - appendToJson(result, "pay", object->pay); removeLastComma(result); result += '}'; return result; |