From 9ffb2d45ef48770daa7b0f478805b49372e0cb3a Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Mon, 2 Sep 2019 10:38:09 +0600 Subject: [PATCH] Add Document (core/types.rs) --- src/core/types.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/types.rs b/src/core/types.rs index 22bae4de..66ad0037 100644 --- a/src/core/types.rs +++ b/src/core/types.rs @@ -94,4 +94,13 @@ pub struct ChatPermissions { can_change_info: Option, can_invite_users: Option, can_pin_messages: Option, +} + +#[derive(Debug, Deserialize)] +pub struct Document { + file_id: String, + thumb: Option, + file_name: Option, + mime_type: Option, + file_size: Option, } \ No newline at end of file