diff --git a/src/types/message.rs b/src/types/message.rs index 2d30391b..b55a7388 100644 --- a/src/types/message.rs +++ b/src/types/message.rs @@ -253,7 +253,7 @@ impl MessageGroupChatCreated { } } -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MessageSupergroupChatCreated { /// Service message: the supergroup has been created. This field can‘t @@ -264,6 +264,12 @@ pub struct MessageSupergroupChatCreated { pub supergroup_chat_created: True, } +impl MessageSupergroupChatCreated { + pub fn new() -> Self { + Self::default() + } +} + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MessageChannelChatCreated {