public static bool IsForever(this ChatMemberStatusBanned banned)
 {
     return(banned.BannedUntilDate == 0 || Math.Abs(banned.BannedUntilDate - DateTime.Now.ToTimestamp() / 1000) > 5 * 365 * 24 * 60 * 60);
 }
Пример #2
0
 public static bool IsForever(this ChatMemberStatusBanned banned)
 {
     return(Math.Abs(banned.BannedUntilDate - Utils.CurrentTimestamp / 1000) > 5 * 365 * 24 * 60 * 60);
 }