diff options
author | paulusel <paulusel@proton.me> | 2024-03-26 05:22:30 +0000 |
---|---|---|
committer | paulusel <paulusel@proton.me> | 2024-03-26 05:22:30 +0000 |
commit | fc0e0f9deb9ce480b3cdf9340ff1fa57435c20cd (patch) | |
tree | c35af4c7ae366069eeb1060417d8f7b3e73aa3d0 /src/Api.cpp | |
parent | 51ed1245a0b492c76c77b754f76234c79fba6c65 (diff) |
Avoid unnecessary casting in reply_markup
Diffstat (limited to 'src/Api.cpp')
-rw-r--r-- | src/Api.cpp | 2 |
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); |