summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaulusel <paulusel@proton.me>2024-03-26 05:22:30 +0000
committerpaulusel <paulusel@proton.me>2024-03-26 05:22:30 +0000
commitfc0e0f9deb9ce480b3cdf9340ff1fa57435c20cd (patch)
treec35af4c7ae366069eeb1060417d8f7b3e73aa3d0
parent51ed1245a0b492c76c77b754f76234c79fba6c65 (diff)
Avoid unnecessary casting in reply_markup
-rw-r--r--src/Api.cpp2
1 files changed, 1 insertions, 1 deletions
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);