diff --git a/crates/teloxide-core/src/types/message.rs b/crates/teloxide-core/src/types/message.rs index a375597e..c5e71570 100644 --- a/crates/teloxide-core/src/types/message.rs +++ b/crates/teloxide-core/src/types/message.rs @@ -2390,7 +2390,7 @@ mod tests { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None } + chat_full_info: ChatFullInfo::default() }], winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(), winner_count: 1, @@ -2499,7 +2499,7 @@ mod tests { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None } + chat_full_info: ChatFullInfo::default() }, via_bot: None, kind: MessageKind::Giveaway(MessageGiveaway { @@ -2522,7 +2522,7 @@ mod tests { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None } + chat_full_info: ChatFullInfo::default() }], winners_selection_date: DateTime::from_timestamp(1721162701, 0) .unwrap(), @@ -2623,7 +2623,7 @@ mod tests { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None } + chat_full_info: ChatFullInfo::default() }, giveaway_message_id: MessageId(27), winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(), diff --git a/crates/teloxide-core/src/types/update.rs b/crates/teloxide-core/src/types/update.rs index 5a1e8804..185e5ebe 100644 --- a/crates/teloxide-core/src/types/update.rs +++ b/crates/teloxide-core/src/types/update.rs @@ -882,7 +882,7 @@ mod test { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }, + chat_full_info: ChatFullInfo::default(), }, message_id: MessageId(35), user: Some(User { @@ -962,7 +962,7 @@ mod test { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }, + chat_full_info: ChatFullInfo::default(), }, message_id: MessageId(36), date: DateTime::from_timestamp(1721306391, 0).unwrap(), @@ -1039,7 +1039,7 @@ mod test { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }, + chat_full_info: ChatFullInfo::default(), }, boost: ChatBoost { boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(), @@ -1116,7 +1116,7 @@ mod test { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }, + chat_full_info: ChatFullInfo::default(), }, boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(), remove_date: DateTime::from_timestamp(1721999621, 0).unwrap(),