mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Use ChatFullInfo::default() in gieaway, message_reaction and chat_boost tests
This commit is contained in:
parent
b78dac4ee5
commit
664717e07d
2 changed files with 8 additions and 8 deletions
|
@ -2390,7 +2390,7 @@ mod tests {
|
||||||
message_auto_delete_time: None,
|
message_auto_delete_time: None,
|
||||||
has_hidden_members: false,
|
has_hidden_members: false,
|
||||||
has_aggressive_anti_spam_enabled: 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(),
|
winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(),
|
||||||
winner_count: 1,
|
winner_count: 1,
|
||||||
|
@ -2499,7 +2499,7 @@ mod tests {
|
||||||
message_auto_delete_time: None,
|
message_auto_delete_time: None,
|
||||||
has_hidden_members: false,
|
has_hidden_members: false,
|
||||||
has_aggressive_anti_spam_enabled: false,
|
has_aggressive_anti_spam_enabled: false,
|
||||||
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }
|
chat_full_info: ChatFullInfo::default()
|
||||||
},
|
},
|
||||||
via_bot: None,
|
via_bot: None,
|
||||||
kind: MessageKind::Giveaway(MessageGiveaway {
|
kind: MessageKind::Giveaway(MessageGiveaway {
|
||||||
|
@ -2522,7 +2522,7 @@ mod tests {
|
||||||
message_auto_delete_time: None,
|
message_auto_delete_time: None,
|
||||||
has_hidden_members: false,
|
has_hidden_members: false,
|
||||||
has_aggressive_anti_spam_enabled: 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)
|
winners_selection_date: DateTime::from_timestamp(1721162701, 0)
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
|
@ -2623,7 +2623,7 @@ mod tests {
|
||||||
message_auto_delete_time: None,
|
message_auto_delete_time: None,
|
||||||
has_hidden_members: false,
|
has_hidden_members: false,
|
||||||
has_aggressive_anti_spam_enabled: 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),
|
giveaway_message_id: MessageId(27),
|
||||||
winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(),
|
winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(),
|
||||||
|
|
|
@ -882,7 +882,7 @@ mod test {
|
||||||
message_auto_delete_time: None,
|
message_auto_delete_time: None,
|
||||||
has_hidden_members: false,
|
has_hidden_members: false,
|
||||||
has_aggressive_anti_spam_enabled: 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),
|
message_id: MessageId(35),
|
||||||
user: Some(User {
|
user: Some(User {
|
||||||
|
@ -962,7 +962,7 @@ mod test {
|
||||||
message_auto_delete_time: None,
|
message_auto_delete_time: None,
|
||||||
has_hidden_members: false,
|
has_hidden_members: false,
|
||||||
has_aggressive_anti_spam_enabled: 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),
|
message_id: MessageId(36),
|
||||||
date: DateTime::from_timestamp(1721306391, 0).unwrap(),
|
date: DateTime::from_timestamp(1721306391, 0).unwrap(),
|
||||||
|
@ -1039,7 +1039,7 @@ mod test {
|
||||||
message_auto_delete_time: None,
|
message_auto_delete_time: None,
|
||||||
has_hidden_members: false,
|
has_hidden_members: false,
|
||||||
has_aggressive_anti_spam_enabled: false,
|
has_aggressive_anti_spam_enabled: false,
|
||||||
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None },
|
chat_full_info: ChatFullInfo::default(),
|
||||||
},
|
},
|
||||||
boost: ChatBoost {
|
boost: ChatBoost {
|
||||||
boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(),
|
boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(),
|
||||||
|
@ -1116,7 +1116,7 @@ mod test {
|
||||||
message_auto_delete_time: None,
|
message_auto_delete_time: None,
|
||||||
has_hidden_members: false,
|
has_hidden_members: false,
|
||||||
has_aggressive_anti_spam_enabled: 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(),
|
boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(),
|
||||||
remove_date: DateTime::from_timestamp(1721999621, 0).unwrap(),
|
remove_date: DateTime::from_timestamp(1721999621, 0).unwrap(),
|
||||||
|
|
Loading…
Reference in a new issue