summaryrefslogtreecommitdiff
path: root/src/Api.cpp
diff options
context:
space:
mode:
authorMaks UjGamer <ujgamer@yandex.com>2017-05-14 19:19:06 +0300
committerMaks UjGamer <ujgamer@yandex.com>2017-05-14 19:19:06 +0300
commit39d412ae47f407e16d88fbb0792da9e479fae8c1 (patch)
tree90a4eeca471cfa9a66a9d7f01b8f142ac529aeb1 /src/Api.cpp
parent7d3790343aace3f669e828a7cf06975f1efe1e07 (diff)
Added deleteMessage method.
Diffstat (limited to 'src/Api.cpp')
-rw-r--r--src/Api.cpp4
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) });
+}
+
}