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 /src | |
parent | 7d3790343aace3f669e828a7cf06975f1efe1e07 (diff) |
Added deleteMessage method.
Diffstat (limited to 'src')
-rw-r--r-- | src/Api.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Api.cpp b/src/Api.cpp index b7a53c1..8029c33 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -692,4 +692,8 @@ std::string Api::downloadFile(const std::string& filePath, const std::vector<Htt return serverResponse; } +void Api::deleteMessage(int64_t chatId, int32_t messageId) const { + sendRequest("deleteMessage", { HttpReqArg("chat_id", chatId), HttpReqArg("message_id", messageId) }); +} + } |