summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorllnulldisk <48621230+llnulldisk@users.noreply.github.com>2022-08-30 21:58:26 +0200
committerllnulldisk <48621230+llnulldisk@users.noreply.github.com>2022-08-30 21:58:26 +0200
commit5d84d4cb291e5a93d512ddf51f24fa6964e6e4cd (patch)
tree7c25c7968fae4442ea6030fbf5796166ef4a2d49 /src
parentd25aeba50dab2c585e5f3476fc4e904827fdc231 (diff)
Restore the order of parameters in sendMessage
Diffstat (limited to 'src')
-rw-r--r--src/Api.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/Api.cpp b/src/Api.cpp
index 24ae56f..9cb7f6e 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -84,9 +84,9 @@ User::Ptr Api::getMe() const {
return _tgTypeParser.parseJsonAndGetUser(sendRequest("getMe"));
}
-Message::Ptr Api::sendMessage(boost::variant<std::int64_t, const std::string&> chatId, const std::string& text, const std::string& parseMode,
- bool disableWebPagePreview, bool disableNotification, std::int32_t replyToMessageId,
- GenericReply::Ptr replyMarkup) const {
+Message::Ptr Api::sendMessage(boost::variant<std::int64_t, const std::string&> chatId, const std::string& text, bool disableWebPagePreview,
+ std::int32_t replyToMessageId, GenericReply::Ptr replyMarkup, const std::string& parseMode,
+ bool disableNotification) const {
vector<HttpReqArg> args;
args.reserve(7);
@@ -111,20 +111,6 @@ Message::Ptr Api::sendMessage(boost::variant<std::int64_t, const std::string&> c
return _tgTypeParser.parseJsonAndGetMessage(sendRequest("sendMessage", args));
}
-Message::Ptr Api::sendMessage(const std::string& chatId, const std::string& text, bool disableWebPagePreview,
- std::int32_t replyToMessageId, GenericReply::Ptr replyMarkup, const std::string& parseMode,
- bool disableNotification) const {
-
- return sendMessage(chatId, text, parseMode, disableWebPagePreview, disableNotification, replyToMessageId, replyMarkup);
-}
-
-Message::Ptr Api::sendMessage(std::int64_t chatId, const std::string& text, bool disableWebPagePreview,
- std::int32_t replyToMessageId, GenericReply::Ptr replyMarkup, const std::string& parseMode,
- bool disableNotification) const {
-
- return sendMessage(chatId, text, parseMode, disableWebPagePreview, disableNotification, replyToMessageId, replyMarkup);
-}
-
Message::Ptr Api::forwardMessage(std::int64_t chatId, std::int64_t fromChatId, std::int32_t messageId, bool disableNotification) const {
vector<HttpReqArg> args;
args.reserve(4);