Improve types

This commit is contained in:
RustemB 2019-09-03 01:06:54 +05:00
parent 27901b1614
commit 1b97feebf5

View file

@ -5,8 +5,8 @@ use crate::core::types::{PhotoSize, MaskPosition};
#[derive(Debug, Deserialize, Hash, PartialEq, Eq)] #[derive(Debug, Deserialize, Hash, PartialEq, Eq)]
pub struct Sticker { pub struct Sticker {
pub file_id: String, pub file_id: String,
pub width: i32, pub width: u16,
pub height: i32, pub height: u16,
pub is_animated: bool, pub is_animated: bool,
pub thumb: Option<PhotoSize>, pub thumb: Option<PhotoSize>,
pub emoji: Option<String>, pub emoji: Option<String>,