summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2022-11-17 21:10:12 +0300
committerGitHub <noreply@github.com>2022-11-17 21:10:12 +0300
commitac1d382e8d46f5cfca5b7a7b1599c0eb8e1931f1 (patch)
treeb67eed56b8c9dfe39da4056bb1cbe3135737cfca
parent054d8f2cb1ddc859cdb31cd640d6255ba50aec16 (diff)
parent74067d02b512245c7235e9eb5a1c2bcb68e70c87 (diff)
Merge pull request #243 from EugeneSmile/master
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 {