Skip to content

Commit

Permalink
Merge pull request #299 from paulusel/master
Browse files Browse the repository at this point in the history
Avoid unnecessary casting of reply_markup in editMessageText
  • Loading branch information
reo7sp authored Mar 26, 2024
2 parents 6a36fa1 + fc0e0f9 commit 0910c16
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 0910c16

Please sign in to comment.