From 9126c7db3a5fc67ae8046ccc4ba8dfb249e41360 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Sun, 25 Sep 2022 21:13:50 +0400 Subject: [PATCH] Fix serialization of video stickers --- CHANGELOG.md | 2 ++ src/types/input_sticker.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 343b3bfc..f51030ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,8 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - `SetWebhook` request can now properly send certificate ([#250][pr250]) +- Serialization of `InputSticker::Webm` ([#252][pr252]) [pr250]: https://github.com/teloxide/teloxide-core/pull/250 +[pr252]: https://github.com/teloxide/teloxide-core/pull/252 ### Deprecated diff --git a/src/types/input_sticker.rs b/src/types/input_sticker.rs index 827194ec..f938106c 100644 --- a/src/types/input_sticker.rs +++ b/src/types/input_sticker.rs @@ -34,5 +34,6 @@ pub enum InputSticker { /// WEBM video with the sticker, uploaded using multipart/form-data. /// /// See for technical requirements. + #[serde(rename = "webm_sticker")] Webm(InputFile), }