mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add ChatPermissions (core/types.rs)
This commit is contained in:
parent
de8dd3d84e
commit
a3188e34de
1 changed files with 13 additions and 1 deletions
|
@ -24,11 +24,23 @@ pub struct Chat {
|
||||||
pinned_message: Option<Message>,
|
pinned_message: Option<Message>,
|
||||||
permissions: Option<ChatPermissions>,
|
permissions: Option<ChatPermissions>,
|
||||||
sticker_set_name: Option<String>,
|
sticker_set_name: Option<String>,
|
||||||
can_set_sticker_set: Option<Bool>,
|
can_set_sticker_set: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct ChatPhoto {
|
pub struct ChatPhoto {
|
||||||
small_file_id: String,
|
small_file_id: String,
|
||||||
big_file_id: String,
|
big_file_id: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Deserialize)]
|
||||||
|
pub struct ChatPermissions {
|
||||||
|
can_send_messages: Option<bool>,
|
||||||
|
can_send_media_messages: Option<bool>,
|
||||||
|
can_send_polls: Option<bool>,
|
||||||
|
can_send_other_messages: Option<bool>,
|
||||||
|
can_add_web_page_previews: Option<bool>,
|
||||||
|
can_change_info: Option<bool>,
|
||||||
|
can_invite_users: Option<bool>,
|
||||||
|
can_pin_messages: Option<bool>,
|
||||||
}
|
}
|
Loading…
Reference in a new issue