Skip to content

Commit

Permalink
Avoid unnecessary casting in reply_markup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulusel committed Mar 26, 2024
1 parent 51ed124 commit fc0e0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ Message::Ptr Api::editMessageText(const std::string& text,
args.emplace_back("disable_web_page_preview", disableWebPagePreview);
}
if (replyMarkup) {
args.emplace_back("reply_markup", _tgTypeParser.parseGenericReply(replyMarkup));
args.emplace_back("reply_markup", _tgTypeParser.parseInlineKeyboardMarkup(replyMarkup));
}

boost::property_tree::ptree p = sendRequest("editMessageText", args);
Expand Down

0 comments on commit fc0e0f9

Please sign in to comment.