mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-08 16:04:02 +00:00
BREAKING CHANGE: Introducing inheritAfter which allows for better/simplified (but possibly changed) class hierarchy generation.
Also improved layers class generation.
This commit is contained in:
parent
e6c5d94d9d
commit
e3b70fda19
6 changed files with 387 additions and 407 deletions
|
|
@ -73,10 +73,9 @@ Below is an example of calling the [messages.getAllChats](https://core.telegram.
|
|||
```csharp
|
||||
using TL;
|
||||
...
|
||||
var chatsBase = await client.Messages_GetAllChats(null);
|
||||
if (chatsBase is not Messages_Chats { chats: var chats }) throw new Exception("hu?");
|
||||
var chats = await client.Messages_GetAllChats(null);
|
||||
Console.WriteLine("This user has joined the following:");
|
||||
foreach (var chat in chats)
|
||||
foreach (var chat in chats.chats)
|
||||
switch (chat)
|
||||
{
|
||||
case Chat smallgroup when (smallgroup.flags & Chat.Flags.deactivated) == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue