mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix SetWebhook
request: make it multipart
This commit is contained in:
parent
40e9a13d22
commit
5d65c11922
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue