Open SMPSLLC opened 4 years ago
My code :
public async Task<TLAbsDialogs> GetUserDialogsAsync() { var peer = new TLInputPeerChat(); return await client.SendRequestAsync<TLAbsDialogs>( new TLRequestGetDialogs() { OffsetPeer = peer, Limit = int.MaxValue }); } var dialogs = await GetUserDialogsAsync() as TLDialogsSlice; var chats = dialogs.Chats .OfType<TLChat>() .ToList(); Console.WriteLine("Count : " + chats.Count());
output (when Limit = int.MaxValue): Count : 14 output (when Limit = int.MinValue): Count : 7
Limit = int.MaxValue
Count : 14
Limit = int.MinValue
Count : 7
My code :
output (when
Limit = int.MaxValue
):Count : 14
output (whenLimit = int.MinValue
):Count : 7