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:
Wizou 2021-09-26 05:07:17 +02:00
parent e6c5d94d9d
commit e3b70fda19
6 changed files with 387 additions and 407 deletions

View file

@ -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: