mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
Add setters to ChatPermissions
This commit is contained in:
parent
50db42ffb6
commit
789194bdcd
1 changed files with 6 additions and 0 deletions
|
@ -40,3 +40,9 @@ pub struct ChatPermissions {
|
|||
/// supergroups.
|
||||
pub can_pin_messages: Option<bool>,
|
||||
}
|
||||
|
||||
impl ChatPermissions {
|
||||
pub fn new() -> Self {
|
||||
Self::default()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue