From 74067d02b512245c7235e9eb5a1c2bcb68e70c87 Mon Sep 17 00:00:00 2001 From: Eugene Lykov Date: Thu, 17 Nov 2022 15:46:48 +0100 Subject: Add missing args in webhooks operations --- src/Api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Api.cpp b/src/Api.cpp index a80feb1..dc4076f 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -67,7 +67,7 @@ bool Api::setWebhook(const std::string& url, args.emplace_back("secret_token", secretToken); } - return sendRequest("setWebhook").get("", false); + return sendRequest("setWebhook", args).get("", false); } bool Api::deleteWebhook(bool dropPendingUpdates) const { @@ -78,7 +78,7 @@ bool Api::deleteWebhook(bool dropPendingUpdates) const { args.emplace_back("drop_pending_updates", dropPendingUpdates); } - return sendRequest("deleteWebhook").get("", false); + return sendRequest("deleteWebhook", args).get("", false); } WebhookInfo::Ptr Api::getWebhookInfo() const { -- cgit v1.2.3