summaryrefslogtreecommitdiff
path: root/include/tgbot
diff options
context:
space:
mode:
authorOleg Morozenkov <reo7sp@users.noreply.github.com>2017-05-15 00:23:17 +0300
committerGitHub <noreply@github.com>2017-05-15 00:23:17 +0300
commitdd0a307c489f86a608f2f9e57454e2831912804d (patch)
tree90a4eeca471cfa9a66a9d7f01b8f142ac529aeb1 /include/tgbot
parent7d3790343aace3f669e828a7cf06975f1efe1e07 (diff)
parent39d412ae47f407e16d88fbb0792da9e479fae8c1 (diff)
Merge pull request #47 from UjGamer/master
Added deleteMessage method.
Diffstat (limited to 'include/tgbot')
-rw-r--r--include/tgbot/Api.h7
1 files changed, 7 insertions, 0 deletions
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
@@ -410,6 +410,13 @@ public:
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.
* In order to avoid getting duplicate updates, recalculate offset after each server response.