From df62dac9d87060afaae239207bd64864d4784205 Mon Sep 17 00:00:00 2001 From: ilya latushko Date: Mon, 4 Feb 2019 20:20:24 +0300 Subject: [PATCH] layer 95 --- README.md | 2 +- Telega.Rpc.Dto.Generator/Program.cs | 4 ++-- Telega/Rpc/Dto/SchemeInfo.cs | 2 +- Telega/TelegramClientAuth.cs | 8 ++++++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 54bdcf6..b681586 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ If you are not familiar with LanguageExt you can read [LanguageExt readme](https The root of Telega is TLSharp. However the library is designed completely different. * netstandard 2.0 target -* layer 93 +* layer 95 * a new DTO generator which is based on .tl scheme * completely redesigned DTOs * elimination of all reflection usages (even in deserialization) diff --git a/Telega.Rpc.Dto.Generator/Program.cs b/Telega.Rpc.Dto.Generator/Program.cs index 5c59649..3bbe5b6 100644 --- a/Telega.Rpc.Dto.Generator/Program.cs +++ b/Telega.Rpc.Dto.Generator/Program.cs @@ -13,8 +13,8 @@ static class Program { // https://github.com/telegramdesktop/tdesktop/commits/dev/Telegram/Resources/scheme.tl - // layer 93 - const string SchemeUrl = "https://github.com/raw/telegramdesktop/tdesktop/d2d6b319b649e7e07e172cea18a814e3a17395f3/Telegram/Resources/scheme.tl"; + // layer 95 + const string SchemeUrl = "https://github.com/raw/telegramdesktop/tdesktop/e10c928207189b6554295e5662c23dfc1e5450da/Telegram/Resources/scheme.tl"; static string DownloadLatestTgScheme() => new WebClient().DownloadString(SchemeUrl); diff --git a/Telega/Rpc/Dto/SchemeInfo.cs b/Telega/Rpc/Dto/SchemeInfo.cs index 1ea5001..2d5ec35 100644 --- a/Telega/Rpc/Dto/SchemeInfo.cs +++ b/Telega/Rpc/Dto/SchemeInfo.cs @@ -8,6 +8,6 @@ namespace Telega.Rpc.Dto { static class SchemeInfo { - public const int LayerVersion = 93; + public const int LayerVersion = 95; } } \ No newline at end of file diff --git a/Telega/TelegramClientAuth.cs b/Telega/TelegramClientAuth.cs index 31b1a3e..766358f 100644 --- a/Telega/TelegramClientAuth.cs +++ b/Telega/TelegramClientAuth.cs @@ -34,8 +34,12 @@ public async Task SendCode(Some apiHash, Some phoneNumbe phoneNumber: phoneNumber, apiId: _tg.Session.ApiId, apiHash: apiHash, - allowFlashcall: false, - currentNumber: None + new CodeSettings( + allowFlashcall: false, + currentNumber: false, + appHashPersistent: false, + appHash: None + ) )).ConfigureAwait(false); return res.PhoneCodeHash; }