mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Merge pull request #250 from teloxide/fix_set_webhook_again
Fix `SetWebhook` request: make it multipart
This commit is contained in:
commit
00165e64dc
2 changed files with 7 additions and 1 deletions
|
@ -20,6 +20,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
|
||||
|
||||
### Deprecated
|
||||
|
||||
- `AutoSend` adaptor ([#249][pr249])
|
||||
|
|
|
@ -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