diff --git a/src/types/input_file.rs b/src/types/input_file.rs index 33dcb31d..f36e5fc0 100644 --- a/src/types/input_file.rs +++ b/src/types/input_file.rs @@ -434,13 +434,13 @@ impl InputFileLike for Option<InputFile> { impl InputFileLike for InputSticker { fn copy_into(&self, into: &mut dyn FnMut(InputFile)) { - let (InputSticker::Png(input_file) | InputSticker::Tgs(input_file)) = self; + let (Self::Png(input_file) | Self::Tgs(input_file) | Self::Webm(input_file)) = self; input_file.copy_into(into) } fn move_into(&mut self, into: &mut dyn FnMut(InputFile)) { - let (InputSticker::Png(input_file) | InputSticker::Tgs(input_file)) = self; + let (Self::Png(input_file) | Self::Tgs(input_file) | Self::Webm(input_file)) = self; input_file.move_into(into) } diff --git a/src/types/input_sticker.rs b/src/types/input_sticker.rs index 8da456f6..827194ec 100644 --- a/src/types/input_sticker.rs +++ b/src/types/input_sticker.rs @@ -27,7 +27,12 @@ pub enum InputSticker { /// TGS animation with the sticker, uploaded using multipart/form-data. /// - /// See <https://core.telegram.org/animated_stickers#technical-requirements> for technical requirements + /// See <https://core.telegram.org/animated_stickers#technical-requirements> for technical requirements. #[serde(rename = "tgs_sticker")] Tgs(InputFile), + + /// WEBM video with the sticker, uploaded using multipart/form-data. + /// + /// See <https://core.telegram.org/stickers#video-sticker-requirements> for technical requirements. + Webm(InputFile), }