summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2024-03-25 21:46:41 +0300
committerGitHub <noreply@github.com>2024-03-25 21:46:41 +0300
commit6a36fa18bb3f6ae8b678c5286dc30da5cc30c15b (patch)
tree285c0371b4baf8191257142134c51e92eacbfa4e
parentdd3a5a2307fb13a740133640b1dda3701f8d4006 (diff)
parent51ed1245a0b492c76c77b754f76234c79fba6c65 (diff)
Merge pull request #298 from paulusel/master
Fix keyboard markup type in exditmessagetext
-rw-r--r--include/tgbot/Api.h2
-rw-r--r--src/Api.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h
index 6bd24e4..b7a541a 100644
--- a/include/tgbot/Api.h
+++ b/include/tgbot/Api.h
@@ -1473,7 +1473,7 @@ public:
const std::string& inlineMessageId = "",
const std::string& parseMode = "",
bool disableWebPagePreview = false,
- GenericReply::Ptr replyMarkup = nullptr,
+ InlineKeyboardMarkup::Ptr replyMarkup = nullptr,
const std::vector<MessageEntity::Ptr>& entities = std::vector<MessageEntity::Ptr>()) const;
/**
diff --git a/src/Api.cpp b/src/Api.cpp
index f3f8124..58d5227 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -1776,7 +1776,7 @@ Message::Ptr Api::editMessageText(const std::string& text,
const std::string& inlineMessageId,
const std::string& parseMode,
bool disableWebPagePreview,
- GenericReply::Ptr replyMarkup,
+ InlineKeyboardMarkup::Ptr replyMarkup,
const std::vector<MessageEntity::Ptr>& entities) const {
std::vector<HttpReqArg> args;
args.reserve(8);