mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 14:35:43 +00:00
More helpers (reordered), notably UserOrChat
This commit is contained in:
parent
08ba766e5c
commit
c9ccaf2d17
5 changed files with 318 additions and 123 deletions
|
|
@ -28,7 +28,7 @@ namespace WTelegramClientTest
|
|||
foreach (var (id, chat) in dialogs.chats) chats[id] = chat;
|
||||
var lastDialog = dialogs.dialogs[^1];
|
||||
var lastMsg = dialogs.messages.LastOrDefault(m => m.Peer.ID == lastDialog.Peer.ID && m.ID == lastDialog.TopMessage);
|
||||
var offsetPeer = dialogs.GetUserOrChat(lastDialog).ToInputPeer();
|
||||
var offsetPeer = dialogs.UserOrChat(lastDialog).ToInputPeer();
|
||||
dialogs = (Messages_Dialogs)await client.Messages_GetDialogs(lastMsg?.Date ?? default, lastDialog.TopMessage, offsetPeer, 500, 0);
|
||||
}
|
||||
Console.ReadKey();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue