mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Add setters to MessageSupergroupChatCreated
This commit is contained in:
parent
203f2992d8
commit
ee63fc5f17
1 changed files with 7 additions and 1 deletions
|
@ -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 can‘t
|
/// Service message: the supergroup has been created. This field can‘t
|
||||||
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue