mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-04 22:17:43 +00:00
Fix compatibility issues with .NET Fw 4.7
This commit is contained in:
parent
2ea6ede0a0
commit
f5b108dc9b
3 changed files with 7 additions and 7 deletions
|
|
@ -27,8 +27,8 @@ namespace WTelegramClientTest
|
|||
Console.WriteLine("Loading previously saved access hashes from disk...");
|
||||
using (var stateStream = File.OpenRead(StateFilename))
|
||||
savedState = await JsonSerializer.DeserializeAsync<SavedState>(stateStream);
|
||||
foreach ((long id, long access_hash) in savedState.Channels) client.SetAccessHashFor<Channel>(id, access_hash);
|
||||
foreach ((long id, long access_hash) in savedState.Users) client.SetAccessHashFor<User>(id, access_hash);
|
||||
foreach (var id_hash in savedState.Channels) client.SetAccessHashFor<Channel>(id_hash.Key, id_hash.Value);
|
||||
foreach (var id_hash in savedState.Users) client.SetAccessHashFor<User>(id_hash.Key, id_hash.Value);
|
||||
}
|
||||
|
||||
Console.WriteLine("Connecting to Telegram...");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue