diff options
author | Maks UjGamer <ujgamer@yandex.com> | 2017-05-14 19:19:06 +0300 |
---|---|---|
committer | Maks UjGamer <ujgamer@yandex.com> | 2017-05-14 19:19:06 +0300 |
commit | 39d412ae47f407e16d88fbb0792da9e479fae8c1 (patch) | |
tree | 90a4eeca471cfa9a66a9d7f01b8f142ac529aeb1 /include | |
parent | 7d3790343aace3f669e828a7cf06975f1efe1e07 (diff) |
Added deleteMessage method.
Diffstat (limited to 'include')
-rw-r--r-- | include/tgbot/Api.h | 7 |
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. |