diff options
-rw-r--r-- | src/TgTypeParser.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index 3745e1c..a31172f 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -1280,12 +1280,15 @@ std::string TgTypeParser::parseInlineKeyboardButton(const InlineKeyboardButton:: } std::string result; result += '{'; - appendToJson(result, "pay", object->pay); appendToJson(result, "text", object->text); appendToJson(result, "url", object->url); appendToJson(result, "callback_data", object->callbackData); + appendToJson(result, "web_app", parseWebAppInfo(object->webApp)); + appendToJson(result, "login_url", parseLoginUrl(object->loginUrl)); appendToJson(result, "switch_inline_query", object->switchInlineQuery); appendToJson(result, "switch_inline_query_current_chat", object->switchInlineQueryCurrentChat); + appendToJson(result, "callback_game", parseCallbackGame(object->callbackGame)); + appendToJson(result, "pay", object->pay); removeLastComma(result); result += '}'; return result; |