Add setters to PublicChatGroup
@@ -202,7 +202,7 @@ impl PublicChatChannel {
}
#[serde_with_macros::skip_serializing_none]
-#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
+#[derive(Clone, Default, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct PublicChatGroup {
/// A default chat member permissions, for groups and supergroups. Returned
@@ -212,6 +212,12 @@ pub struct PublicChatGroup {
pub permissions: Option<ChatPermissions>,
}
+impl PublicChatGroup {
+ pub fn new() -> Self {
+ Self::default()
+ }
+}
+
#[serde_with_macros::skip_serializing_none]
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
