diff --git a/crates/teloxide-core/src/types/chat.rs b/crates/teloxide-core/src/types/chat.rs index a3fbed62..41fae489 100644 --- a/crates/teloxide-core/src/types/chat.rs +++ b/crates/teloxide-core/src/types/chat.rs @@ -577,6 +577,7 @@ impl Chat { } mod serde_helper { + use super::Birthdate; use crate::types::True; use serde::{Deserialize, Serialize}; @@ -599,6 +600,7 @@ mod serde_helper { has_private_forwards: Option, has_restricted_voice_and_video_messages: Option, personal_chat: Option>, + birthdate: Option, } impl From for super::ChatPrivate { @@ -612,6 +614,7 @@ mod serde_helper { has_private_forwards, has_restricted_voice_and_video_messages, personal_chat, + birthdate, }: ChatPrivate, ) -> Self { Self { @@ -622,6 +625,7 @@ mod serde_helper { has_private_forwards, has_restricted_voice_and_video_messages, personal_chat, + birthdate, } } } @@ -636,6 +640,7 @@ mod serde_helper { has_private_forwards, has_restricted_voice_and_video_messages, personal_chat, + birthdate, }: super::ChatPrivate, ) -> Self { Self { @@ -647,6 +652,7 @@ mod serde_helper { has_private_forwards, has_restricted_voice_and_video_messages, personal_chat, + birthdate, } } } @@ -710,6 +716,7 @@ mod tests { has_private_forwards: None, has_restricted_voice_and_video_messages: None, personal_chat: None, + birthdate: None, }), photo: None, available_reactions: Some(vec![ReactionType::Emoji { emoji: "🌭".to_owned() }]), @@ -749,6 +756,7 @@ mod tests { has_private_forwards: None, has_restricted_voice_and_video_messages: None, personal_chat: None, + birthdate: None, }), photo: None, available_reactions: None, diff --git a/crates/teloxide-core/src/types/message.rs b/crates/teloxide-core/src/types/message.rs index 0b625ed5..17fbe150 100644 --- a/crates/teloxide-core/src/types/message.rs +++ b/crates/teloxide-core/src/types/message.rs @@ -1892,6 +1892,7 @@ mod tests { has_private_forwards: None, has_restricted_voice_and_video_messages: None, personal_chat: None, + birthdate: None, }), photo: None, available_reactions: None, diff --git a/crates/teloxide-core/src/types/update.rs b/crates/teloxide-core/src/types/update.rs index 54b285ac..1c792bfc 100644 --- a/crates/teloxide-core/src/types/update.rs +++ b/crates/teloxide-core/src/types/update.rs @@ -536,6 +536,7 @@ mod test { has_private_forwards: None, has_restricted_voice_and_video_messages: None, personal_chat: None, + birthdate: None, }), photo: None, available_reactions: None,