mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-04 14:07:41 +00:00
ctor for Input User/Channel with mandatory access_hash parameter
This commit is contained in:
parent
67da1da8c0
commit
c2f228f7de
6 changed files with 44 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue