summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2022-11-29 16:11:02 +0300
committerGitHub <noreply@github.com>2022-11-29 16:11:02 +0300
commitd2bf07fee0ba828a837ca181c396eba0e8313b0f (patch)
tree024d048d245129db6a2638ab17d81e757667c4eb
parentac1d382e8d46f5cfca5b7a7b1599c0eb8e1931f1 (diff)
parentbdd60964bca2c1c8d39b65e03de065429ee7ea3b (diff)
Merge pull request #245 from llnulldisk/master
Update InlineKeyboardButton (#244)
-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;