Add setters to MessageGroupChatCreated
@@ -240,13 +240,19 @@ impl MessageDeleteChatPhoto {
}
}
-#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
+#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MessageGroupChatCreated {
/// Service message: the group has been created.
pub group_chat_created: True,
}
+impl MessageGroupChatCreated {
+ pub fn new() -> Self {
+ Self::default()
+ }
+}
+
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MessageSupergroupChatCreated {
