mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 14:35:43 +00:00
Renamed OnUpdate => OnUpdates (with temporary compatibility shim)
This commit is contained in:
parent
270a7d89e6
commit
3d224afb23
12 changed files with 49 additions and 52 deletions
|
|
@ -30,7 +30,7 @@ namespace WTelegramClientTest
|
|||
Client = new WTelegram.Client(store.Length == 0 ? null : Environment.GetEnvironmentVariable, store);
|
||||
using (Client)
|
||||
{
|
||||
Client.OnUpdate += Client_OnUpdate;
|
||||
Client.OnUpdates += Client_OnUpdates;
|
||||
My = await Client.LoginUserIfNeeded();
|
||||
Console.WriteLine($"We are logged-in as {My.username ?? My.first_name + " " + My.last_name} (id {My.id})");
|
||||
var dialogs = await Client.Messages_GetAllDialogs();
|
||||
|
|
@ -39,7 +39,7 @@ namespace WTelegramClientTest
|
|||
}
|
||||
}
|
||||
|
||||
private static async Task Client_OnUpdate(UpdatesBase updates)
|
||||
private static async Task Client_OnUpdates(UpdatesBase updates)
|
||||
{
|
||||
updates.CollectUsersChats(Users, Chats);
|
||||
foreach (var update in updates.UpdateList)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue