From fc0e0f9deb9ce480b3cdf9340ff1fa57435c20cd Mon Sep 17 00:00:00 2001 From: paulusel Date: Tue, 26 Mar 2024 05:22:30 +0000 Subject: Avoid unnecessary casting in reply_markup --- src/Api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api.cpp b/src/Api.cpp index 58d5227..c8ce399 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -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); -- cgit v1.2.3