diff --git a/CHANGELOG.md b/CHANGELOG.md index 58f99914..e9d75899 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [pr244]: https://github.com/teloxide/teloxide-core/pull/246 +### Fixed + +- `SetWebhook` request can now properly send certificate ([#250][pr250]) + +[pr250]: https://github.com/teloxide/teloxide-core/pull/250 + ## 0.7.1 - 2022-08-19 ### Fixed diff --git a/src/bot/api.rs b/src/bot/api.rs index 4ea83ae3..96c6239a 100644 --- a/src/bot/api.rs +++ b/src/bot/api.rs @@ -20,7 +20,7 @@ impl Requester for Bot { Self::GetUpdates::new(self.clone(), payloads::GetUpdates::new()) } - type SetWebhook = JsonRequest; + type SetWebhook = MultipartRequest; fn set_webhook(&self, url: Url) -> Self::SetWebhook { Self::SetWebhook::new(self.clone(), payloads::SetWebhook::new(url))