public async Task <bool> GetUpdates(bool main = false) { var temp = await Bot.GetUpdatesAsync(); List <Update> updates = new List <Update>(temp); updates.RemoveRange(0, Settings.Default.UpdateCount); if (updates.Count == 0) { return(false); } Settings.Default.UpdateCount += updates.Count; Settings.Default.Save(); foreach (Update update in updates) { this.subQueries.Add(new Query(update)); } if (main) { return(true); } this.msgs = this.subQueries.FindAll(q => q.update.Message.Chat.Id == this.update.Message.Chat.Id); this.subQueries.RemoveAll(q => q.update.Message.Chat.Id == this.update.Message.Chat.Id); return(true); }