diff --git a/TLSharp.Core/TelegramClient.cs b/TLSharp.Core/TelegramClient.cs index 57df77e..f683279 100644 --- a/TLSharp.Core/TelegramClient.cs +++ b/TLSharp.Core/TelegramClient.cs @@ -581,8 +581,7 @@ namespace TLSharp.Core int total = 0; int found = stIdx < 0 ? 0 : stIdx; pageSize = pageSize < 0 ? DEFAULT_PAGE_SIZE : pageSize; - - List results = new List(); + TLChannelParticipants ret = new TLChannelParticipants(); ret.Participants = new TLVector(); ret.Users = new TLVector(); @@ -603,7 +602,6 @@ namespace TLSharp.Core var fchat = await SendRequestAsync(req, token).ConfigureAwait(false); total = fchat.Count; found += fchat.Participants.Count; - results.Add(fchat); foreach (var p in fchat.Participants) ret.Participants.Add(p); foreach (var u in fchat.Users)