We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 054d8f2 + 74067d0 commit ac1d382Copy full SHA for ac1d382
src/Api.cpp
@@ -67,7 +67,7 @@ bool Api::setWebhook(const std::string& url,
67
args.emplace_back("secret_token", secretToken);
68
}
69
70
- return sendRequest("setWebhook").get<bool>("", false);
+ return sendRequest("setWebhook", args).get<bool>("", false);
71
72
73
bool Api::deleteWebhook(bool dropPendingUpdates) const {
@@ -78,7 +78,7 @@ bool Api::deleteWebhook(bool dropPendingUpdates) const {
78
args.emplace_back("drop_pending_updates", dropPendingUpdates);
79
80
81
- return sendRequest("deleteWebhook").get<bool>("", false);
+ return sendRequest("deleteWebhook", args).get<bool>("", false);
82
83
84
WebhookInfo::Ptr Api::getWebhookInfo() const {
0 commit comments