From 778f0c54bce8186ace310c70bdd797aa0d759869 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Mon, 15 May 2017 00:25:15 +0300 Subject: Update docs --- src/Api.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Api.cpp b/src/Api.cpp index 8029c33..b9ea183 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -657,6 +657,10 @@ bool Api::unbanChatMember(int64_t chatId, int32_t userId) const { return sendRequest("unbanChatMember", args).get("", false); } +void Api::deleteMessage(int64_t chatId, int32_t messageId) const { + sendRequest("deleteMessage", { HttpReqArg("chat_id", chatId), HttpReqArg("message_id", messageId) }); +} + ptree Api::sendRequest(const string& method, const vector& args) const { string url = "https://api.telegram.org/bot"; @@ -692,8 +696,4 @@ std::string Api::downloadFile(const std::string& filePath, const std::vector