ctor for Input User/Channel with mandatory access_hash parameter

This commit is contained in:
Wizou 2022-03-27 12:18:43 +02:00
parent 67da1da8c0
commit c2f228f7de
6 changed files with 44 additions and 17 deletions

View file

@ -61,7 +61,7 @@ namespace WTelegramClientTest
}
Console.WriteLine("With the access hash, we can now join the channel for example.");
await client.Channels_JoinChannel(new InputChannel { channel_id = DurovID, access_hash = durovAccessHash });
await client.Channels_JoinChannel(new InputChannel(DurovID, durovAccessHash));
Console.WriteLine("Channel joined. Press any key to save and exit");
Console.ReadKey(true);