GetUserDialogsAsync() has new parameter offset so that when a dialogsSlice is received, the continuation can be asked for.

This commit is contained in:
Paulo Rogerio Panhoto 2018-03-12 17:59:42 -03:00
parent 8180ee94f0
commit 6836e563ad

View file

@ -323,11 +323,11 @@ namespace TLSharp.Core
return await SendRequestAsync<Boolean>(req);
}
public async Task<TLAbsDialogs> GetUserDialogsAsync()
public async Task<TLAbsDialogs> GetUserDialogsAsync(int offset = 0)
{
var peer = new TLInputPeerSelf();
return await SendRequestAsync<TLAbsDialogs>(
new TLRequestGetDialogs() { OffsetDate = 0, OffsetPeer = peer, Limit = 100 });
new TLRequestGetDialogs() { OffsetDate = offset, OffsetPeer = peer, Limit = 100 });
}
public async Task<TLAbsUpdates> SendUploadedPhoto(TLAbsInputPeer peer, TLAbsInputFile file, string caption)