Patch `BanChatMember::until_date`: `u64` -> `DateTime<Utc>`
//
// [cg]: https://github.com/teloxide/cg
// [`schema`]: https://github.com/WaffleLapkin/tg-methods-schema
+use chrono::{DateTime, Utc};
use serde::Serialize;
use crate::types::{ChatId, True};
@@ -24,7 +25,8 @@ impl_payload! {
}
optional {
/// Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever
- pub until_date: u64,
+ #[serde(with = "crate::types::serde_opt_date_from_unix_timestamp")]
+ pub until_date: DateTime<Utc> [into],
/// Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels.
pub revoke_messages: bool,
}
