summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorllnulldisk <48621230+llnulldisk@users.noreply.github.com>2022-11-28 09:40:09 +0100
committerllnulldisk <48621230+llnulldisk@users.noreply.github.com>2022-11-28 09:40:09 +0100
commitbdd60964bca2c1c8d39b65e03de065429ee7ea3b (patch)
tree024d048d245129db6a2638ab17d81e757667c4eb /src
parentac1d382e8d46f5cfca5b7a7b1599c0eb8e1931f1 (diff)
Update InlineKeyboardButton (#244)
Diffstat (limited to 'src')
-rw-r--r--src/TgTypeParser.cpp5
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;