diff --git a/TLSharp.Core/TelegramClient.cs b/TLSharp.Core/TelegramClient.cs index 1847f4b..9674ee8 100644 --- a/TLSharp.Core/TelegramClient.cs +++ b/TLSharp.Core/TelegramClient.cs @@ -290,7 +290,7 @@ namespace TLSharp.Core }); } - public async Task GetFile(TLAbsInputFileLocation location, int filePartSize) + public async Task GetFile(TLAbsInputFileLocation location, int filePartSize, int offset = 0) { TLFile result = null; try @@ -298,7 +298,8 @@ namespace TLSharp.Core result = await SendRequestAsync(new TLRequestGetFile() { location = location, - limit = filePartSize + limit = filePartSize, + offset = offset }); } catch (FileMigrationException ex)