diff options
author | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2022-08-30 21:58:26 +0200 |
---|---|---|
committer | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2022-08-30 21:58:26 +0200 |
commit | 5d84d4cb291e5a93d512ddf51f24fa6964e6e4cd (patch) | |
tree | 7c25c7968fae4442ea6030fbf5796166ef4a2d49 /include/tgbot/Api.h | |
parent | d25aeba50dab2c585e5f3476fc4e904827fdc231 (diff) |
Restore the order of parameters in sendMessage
Diffstat (limited to 'include/tgbot/Api.h')
-rw-r--r-- | include/tgbot/Api.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index c2ba2e3..6a95139 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -104,30 +104,15 @@ public: * * @param chatId Unique identifier for the target chat or username of the target channel (in the format @channelusername) * @param text Text of the message to be sent - * @param parseMode Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. * @param disableWebPagePreview Optional. Disables link previews for links in this message - * @param disableNotification Optional. Sends the message silently. Users will receive a notification with no sound. * @param replyToMessageId Optional. If the message is a reply, ID of the original message * @param replyMarkup Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. - * + * @param parseMode Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. + * @param disableNotification Optional. Sends the message silently. Users will receive a notification with no sound. + * * @return On success, the sent @ref Message is returned. */ - Message::Ptr sendMessage(boost::variant<std::int64_t, const std::string&> chatId, const std::string& text, const std::string& parseMode = "", - bool disableWebPagePreview = false, bool disableNotification = false, std::int32_t replyToMessageId = 0, - GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>()) const; - - /** - * @brief Deprecated. Use @ref Api::sendMessage - * @deprecated since Bot API 4.5. This remains unchanged for backward compatibility. - */ - Message::Ptr sendMessage(const std::string& chatId, const std::string& text, bool disableWebPagePreview = false, - std::int32_t replyToMessageId = 0, GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), const std::string& parseMode = "", - bool disableNotification = false) const; - /** - * @brief Deprecated. Use @ref Api::sendMessage - * @deprecated since Bot API 4.5. This remains unchanged for backward compatibility. - */ - Message::Ptr sendMessage(std::int64_t chatId, const std::string& text, bool disableWebPagePreview = false, + Message::Ptr sendMessage(boost::variant<std::int64_t, const std::string&> chatId, const std::string& text, bool disableWebPagePreview = false, std::int32_t replyToMessageId = 0, GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), const std::string& parseMode = "", bool disableNotification = false) const; |