mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
GetUserDialogsAsync() has new parameter offset so that when a dialogsSlice is received, the continuation can be asked for.
This commit is contained in:
parent
8180ee94f0
commit
6836e563ad
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue