diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2022-11-29 16:11:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 16:11:02 +0300 |
commit | d2bf07fee0ba828a837ca181c396eba0e8313b0f (patch) | |
tree | 024d048d245129db6a2638ab17d81e757667c4eb | |
parent | ac1d382e8d46f5cfca5b7a7b1599c0eb8e1931f1 (diff) | |
parent | bdd60964bca2c1c8d39b65e03de065429ee7ea3b (diff) |
Merge pull request #245 from llnulldisk/master
Update InlineKeyboardButton (#244)
-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; |