Skip to content

Commit

Permalink
Merge pull request #245 from llnulldisk/master
Browse files Browse the repository at this point in the history
Update InlineKeyboardButton (#244)
  • Loading branch information
reo7sp authored Nov 29, 2022
2 parents ac1d382 + bdd6096 commit d2bf07f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/TgTypeParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d2bf07f

Please sign in to comment.