Add offset parameter to GetFile() method

This commit is contained in:
Starli0n 2017-01-19 19:31:27 +01:00
parent 5ddd9a3ad0
commit a753a1ab13

View file

@ -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; TLFile result = null;
try try
@ -298,7 +298,8 @@ namespace TLSharp.Core
result = await SendRequestAsync<TLFile>(new TLRequestGetFile() result = await SendRequestAsync<TLFile>(new TLRequestGetFile()
{ {
location = location, location = location,
limit = filePartSize limit = filePartSize,
offset = offset
}); });
} }
catch (FileMigrationException ex) catch (FileMigrationException ex)