From a3188e34de0366d383d6b795d54bdc02fcaac8bc Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Mon, 2 Sep 2019 10:17:21 +0600 Subject: [PATCH] Add ChatPermissions (core/types.rs) --- src/core/types.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/core/types.rs b/src/core/types.rs index 5e7eed85..b55dd871 100644 --- a/src/core/types.rs +++ b/src/core/types.rs @@ -24,11 +24,23 @@ pub struct Chat { pinned_message: Option, permissions: Option, sticker_set_name: Option, - can_set_sticker_set: Option, + can_set_sticker_set: Option, } #[derive(Debug, Deserialize)] pub struct ChatPhoto { small_file_id: String, big_file_id: String, +} + +#[derive(Debug, Deserialize)] +pub struct ChatPermissions { + can_send_messages: Option, + can_send_media_messages: Option, + can_send_polls: Option, + can_send_other_messages: Option, + can_add_web_page_previews: Option, + can_change_info: Option, + can_invite_users: Option, + can_pin_messages: Option, } \ No newline at end of file