summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Lykov <eugenysmile@gmail.com>2022-11-17 15:46:48 +0100
committerEugene Lykov <eugenysmile@gmail.com>2022-11-17 15:46:48 +0100
commit74067d02b512245c7235e9eb5a1c2bcb68e70c87 (patch)
treeb67eed56b8c9dfe39da4056bb1cbe3135737cfca
parent054d8f2cb1ddc859cdb31cd640d6255ba50aec16 (diff)
Add missing args in webhooks operations
-rw-r--r--src/Api.cpp4
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 {