Add Document (core/types.rs)

This commit is contained in:
Temirkhan Myrzamadi 2019-09-02 10:38:09 +06:00
parent ab14d4b7e6
commit 9ffb2d45ef

View file

@ -95,3 +95,12 @@ pub struct ChatPermissions {
can_invite_users: Option<bool>, can_invite_users: Option<bool>,
can_pin_messages: Option<bool>, can_pin_messages: Option<bool>,
} }
#[derive(Debug, Deserialize)]
pub struct Document {
file_id: String,
thumb: Option<PhotoSize>,
file_name: Option<String>,
mime_type: Option<String>,
file_size: Option<i64>,
}