diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2022-11-17 21:10:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 21:10:12 +0300 |
commit | ac1d382e8d46f5cfca5b7a7b1599c0eb8e1931f1 (patch) | |
tree | b67eed56b8c9dfe39da4056bb1cbe3135737cfca | |
parent | 054d8f2cb1ddc859cdb31cd640d6255ba50aec16 (diff) | |
parent | 74067d02b512245c7235e9eb5a1c2bcb68e70c87 (diff) |
Merge pull request #243 from EugeneSmile/master
Add missing args in webhooks operations
-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 { |