public static void EstimationAlarm(int ID, int prim, int estim) { foreach (var user in MPSUser.EnumAllUsers(true).Where(x => x.ESTIMALARM)) { SendMessage(user.CHATID, $"Estimation alarm (from primary {prim} hours to {estim} hours): {Settings.CurrentSettings.GetTTAnchor(ID, "bell.png")}"); } }
public List <MPSUser> getMPSUsers(bool active) { return(MPSUser.EnumAllUsers(active)); }