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