From 39d412ae47f407e16d88fbb0792da9e479fae8c1 Mon Sep 17 00:00:00 2001 From: Maks UjGamer Date: Sun, 14 May 2017 19:19:06 +0300 Subject: Added deleteMessage method. --- include/tgbot/Api.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/tgbot/Api.h') diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 5c3313d..e5b8c5e 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -409,6 +409,13 @@ public: Message::Ptr editMessageReplyMarkup(int64_t chatId = 0, int32_t messageId = 0, const std::string& inlineMessageId = "", const GenericReply::Ptr replyMarkup = GenericReply::Ptr()) const; + /** + * Use this method to delete messages sent by bot (or by other users if bot is admin). + * @param chatId Unique identifier for the target chat. + * @param messageId Unique identifier for the target message. + */ + void deleteMessage(int64_t chatId, int32_t messageId) const; + /** * Use this method to receive incoming updates using long polling. * This method will not work if an outgoing webhook is set up. -- cgit v1.2.3