Add setters to MessageSupergroupChatCreated

This commit is contained in:
Temirkhan Myrzamadi 2020-07-28 01:38:12 +06:00
parent 203f2992d8
commit ee63fc5f17

View file

@ -253,7 +253,7 @@ impl MessageGroupChatCreated {
} }
} }
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
#[non_exhaustive] #[non_exhaustive]
pub struct MessageSupergroupChatCreated { pub struct MessageSupergroupChatCreated {
/// Service message: the supergroup has been created. This field cant /// Service message: the supergroup has been created. This field cant
@ -264,6 +264,12 @@ pub struct MessageSupergroupChatCreated {
pub supergroup_chat_created: True, pub supergroup_chat_created: True,
} }
impl MessageSupergroupChatCreated {
pub fn new() -> Self {
Self::default()
}
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[non_exhaustive] #[non_exhaustive]
pub struct MessageChannelChatCreated { pub struct MessageChannelChatCreated {