diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<bool>("", false); + return sendRequest("setWebhook", args).get<bool>("", 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<bool>("", false); + return sendRequest("deleteWebhook", args).get<bool>("", false); } WebhookInfo::Ptr Api::getWebhookInfo() const { |