mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 14:35:43 +00:00
Nullable ctor: Empty classes are now converted into/from a null value. This simplifies the hierarchy
This commit is contained in:
parent
52fb2a7831
commit
d4c373d95f
9 changed files with 263 additions and 283 deletions
|
|
@ -26,7 +26,7 @@ namespace WTelegramClientTest
|
|||
users[my.id] = my;
|
||||
// note that on logging, Telegram may sends a bunch of updates/messages that happened in the past and were not acknowledged
|
||||
Console.WriteLine($"We are logged-in as {my.username ?? my.first_name + " " + my.last_name} (id {my.id})");
|
||||
var dialogsBase = await client.Messages_GetDialogs(default, 0, InputPeer.Empty, 0, 0);
|
||||
var dialogsBase = await client.Messages_GetDialogs(default, 0, null, 0, 0);
|
||||
if (dialogsBase is Messages_Dialogs dialogs)
|
||||
while (dialogs.dialogs.Length != 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue