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

@ -94,4 +94,13 @@ pub struct ChatPermissions {
can_change_info: Option<bool>,
can_invite_users: 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>,
}