mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Merge pull request #372 from Starli0n/master
Add offset parameter to GetFile() method
This commit is contained in:
commit
85c206cc24
|
|
@ -290,7 +290,7 @@ namespace TLSharp.Core
|
|||
});
|
||||
}
|
||||
|
||||
public async Task<TLFile> GetFile(TLAbsInputFileLocation location, int filePartSize)
|
||||
public async Task<TLFile> GetFile(TLAbsInputFileLocation location, int filePartSize, int offset = 0)
|
||||
{
|
||||
TLFile result = null;
|
||||
try
|
||||
|
|
@ -298,7 +298,8 @@ namespace TLSharp.Core
|
|||
result = await SendRequestAsync<TLFile>(new TLRequestGetFile()
|
||||
{
|
||||
location = location,
|
||||
limit = filePartSize
|
||||
limit = filePartSize,
|
||||
offset = offset
|
||||
});
|
||||
}
|
||||
catch (FileMigrationException ex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue