From 5d65c119229df3d0c8f750c4b4fbd51315a0972f Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Fri, 23 Sep 2022 19:00:22 +0400 Subject: [PATCH] Fix `SetWebhook` request: make it multipart --- CHANGELOG.md | 6 ++++++ src/bot/api.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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))