From 136ad5d2d870239204859bae2500292c2657ef78 Mon Sep 17 00:00:00 2001 From: Xiaodong Qi Date: Wed, 13 Apr 2016 18:33:57 +0800 Subject: Add parseMode parameter to sendMessage --- include/tgbot/Api.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/tgbot/Api.h') diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 66f41b5..6e0e592 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -65,9 +65,10 @@ public: * @param disableWebPagePreview Optional. Disables link previews for links in this message. * @param replyToMessageId Optional. If the message is a reply, ID of the original message. * @param replyMarkup Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. + * @param parseMode Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. * @return On success, the sent message is returned. */ - Message::Ptr sendMessage(int64_t chatId, const std::string& text, bool disableWebPagePreview = false, int32_t replyToMessageId = 0, const GenericReply::Ptr& replyMarkup = GenericReply::Ptr()) const; + Message::Ptr sendMessage(int64_t chatId, const std::string& text, bool disableWebPagePreview = false, int32_t replyToMessageId = 0, const GenericReply::Ptr& replyMarkup = GenericReply::Ptr(), const string& parseMode = "") const; /** * Use this method to forward messages of any kind. -- cgit v1.2.3 From 842710df60e16f4f320353af9f4862b8a1153a91 Mon Sep 17 00:00:00 2001 From: Xiaodong Qi Date: Wed, 13 Apr 2016 18:52:51 +0800 Subject: Fix Api.h --- include/tgbot/Api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tgbot/Api.h') diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 6e0e592..17d0493 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -68,7 +68,7 @@ public: * @param parseMode Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. * @return On success, the sent message is returned. */ - Message::Ptr sendMessage(int64_t chatId, const std::string& text, bool disableWebPagePreview = false, int32_t replyToMessageId = 0, const GenericReply::Ptr& replyMarkup = GenericReply::Ptr(), const string& parseMode = "") const; + Message::Ptr sendMessage(int64_t chatId, const std::string& text, bool disableWebPagePreview = false, int32_t replyToMessageId = 0, const GenericReply::Ptr& replyMarkup = GenericReply::Ptr(), const std::string& parseMode = "") const; /** * Use this method to forward messages of any kind. -- cgit v1.2.3