diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2024-03-26 09:56:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 09:56:33 +0300 |
commit | 0910c166a920cdac931d40bcb63bfb28039005f1 (patch) | |
tree | c35af4c7ae366069eeb1060417d8f7b3e73aa3d0 | |
parent | 6a36fa18bb3f6ae8b678c5286dc30da5cc30c15b (diff) | |
parent | fc0e0f9deb9ce480b3cdf9340ff1fa57435c20cd (diff) |
Merge pull request #299 from paulusel/master
Avoid unnecessary casting of reply_markup in editMessageText
-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); |