OnUpdate is now only for updates. OnOther is used for other notifications

This commit is contained in:
Wizou 2023-05-01 18:21:03 +02:00
parent 5adde27f88
commit 753ac12eb1
5 changed files with 10 additions and 12 deletions

View file

@ -76,9 +76,8 @@ Type a command, or a message to send to the active secret chat:");
} while (true);
}
private static async Task Client_OnUpdate(IObject arg)
private static async Task Client_OnUpdate(UpdatesBase updates)
{
if (arg is not UpdatesBase updates) return;
updates.CollectUsersChats(Users, Chats);
foreach (var update in updates.UpdateList)
switch (update)