mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
fix compilation error for getting dialogs in README.md file
This commit is contained in:
parent
f8f31ddb19
commit
0ff9980cc9
|
|
@ -95,7 +95,7 @@ Full code you can see at [SendMessage test](https://github.com/sochix/TLSharp/bl
|
||||||
To send message to channel you could use the following code:
|
To send message to channel you could use the following code:
|
||||||
```csharp
|
```csharp
|
||||||
//get user dialogs
|
//get user dialogs
|
||||||
var dialogs = (TLDialogs) await client.GetUserDialogsAsync();
|
var dialogs = (TLDialogsSlice) await client.GetUserDialogsAsync();
|
||||||
|
|
||||||
//find channel by title
|
//find channel by title
|
||||||
var chat = dialogs.Chats
|
var chat = dialogs.Chats
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue