Fix SetWebhook request: make it multipart

This commit is contained in:
Maybe Waffle 2022-09-23 19:00:22 +04:00
parent 40e9a13d22
commit 5d65c11922
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -20,7 +20,7 @@ impl Requester for Bot {
Self::GetUpdates::new(self.clone(), payloads::GetUpdates::new())
}
type SetWebhook = JsonRequest<payloads::SetWebhook>;
type SetWebhook = MultipartRequest<payloads::SetWebhook>;
fn set_webhook(&self, url: Url) -> Self::SetWebhook {
Self::SetWebhook::new(self.clone(), payloads::SetWebhook::new(url))