TBA 5.7: Add Sticker{,Set}::is_video

This commit is contained in:
Maybe Waffle 2022-02-01 20:12:26 +03:00
parent 6384560195
commit 044f33551e
2 changed files with 10 additions and 0 deletions

View file

@ -27,6 +27,11 @@ pub struct Sticker {
/// [animated]: https://telegram.org/blog/animated-stickers
pub is_animated: bool,
/// `true`, if the sticker is a [video sticker].
///
/// [video sticker]: https://telegram.org/blog/video-stickers-better-reactions
pub is_video: bool,
/// Sticker thumbnail in the .webp or .jpg format.
pub thumb: Option<PhotoSize>,

View file

@ -18,6 +18,11 @@ pub struct StickerSet {
/// [animates stickers]: https://telegram.org/blog/animated-stickers
pub is_animated: bool,
/// `true`, if the sticker is a [video sticker].
///
/// [video sticker]: https://telegram.org/blog/video-stickers-better-reactions
pub is_video: bool,
/// `true`, if the sticker set contains masks.
pub contains_masks: bool,