Skip to content

Commit

Permalink
layer 95
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyalatt committed Feb 4, 2019
1 parent 3f3e88d commit df62dac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Telega.Rpc.Dto.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion Telega/Rpc/Dto/SchemeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ namespace Telega.Rpc.Dto
{
static class SchemeInfo
{
public const int LayerVersion = 93;
public const int LayerVersion = 95;
}
}
8 changes: 6 additions & 2 deletions Telega/TelegramClientAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ public async Task<string> SendCode(Some<string> apiHash, Some<string> 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;
}
Expand Down

0 comments on commit df62dac

Please sign in to comment.