summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) });
+}
+
}