Skip to content

Commit

Permalink
Merge pull request #243 from EugeneSmile/master
Browse files Browse the repository at this point in the history
Add missing args in webhooks operations
  • Loading branch information
reo7sp authored Nov 17, 2022
2 parents 054d8f2 + 74067d0 commit ac1d382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit ac1d382

Please sign in to comment.