From 78ae7928e089d0eaed6b64b60b9c42acdb28eb52 Mon Sep 17 00:00:00 2001 From: Starli0n Date: Thu, 19 Jan 2017 19:31:27 +0100 Subject: [PATCH] Add offset parameter to GetFile() method --- TLSharp.Core/TelegramClient.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)