mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +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
|
[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
|
### Deprecated
|
||||||
|
|
||||||
- `AutoSend` adaptor ([#249][pr249])
|
- `AutoSend` adaptor ([#249][pr249])
|
||||||
|
|
|
@ -20,7 +20,7 @@ impl Requester for Bot {
|
||||||
Self::GetUpdates::new(self.clone(), payloads::GetUpdates::new())
|
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 {
|
fn set_webhook(&self, url: Url) -> Self::SetWebhook {
|
||||||
Self::SetWebhook::new(self.clone(), payloads::SetWebhook::new(url))
|
Self::SetWebhook::new(self.clone(), payloads::SetWebhook::new(url))
|
||||||
|
|
Loading…
Add table
Reference in a new issue