added Default to ChatPermissions
@@ -39,3 +39,18 @@ pub struct ChatPermissions {
/// supergroups.
pub can_pin_messages: Option<bool>,
}
+
+impl Default for ChatPermissions {
+ fn default() -> Self {
+ Self {
+ can_send_messages: None,
+ can_send_media_messages: None,
+ can_send_polls: None,
+ can_send_other_messages: None,
+ can_add_web_page_previews: None,
+ can_change_info: None,
+ can_invite_users: None,
+ can_pin_messages: None
+ }
+ }
+}
