wiz0u / WTelegramClient

Telegram Client API (MTProto) library written 100% in C# and .NET
https://wiz0u.github.io/WTelegramClient/
MIT License
996 stars 164 forks source link

Client_OnUpdate Issue V3.4.2 #156

Closed DaniloCantagallo closed 1 year ago

DaniloCantagallo commented 1 year ago

Hi, First of all I wanted to congratulate you on the project. I'm trying to replicate the example about automatically updating messages from the "Program_ListenUpdates.cs" channel. I'm using version 3.4.2 (latest) downladed from Nuget. When i try to assign the delegate "Client.OnUpdate += Client_OnUpdate" i receive an error: "Error CS0123 No overloads for 'Client_OnUpdate' match the delegate 'Func<IObject, Task>'" I checked the source on github and it seem that the nuget ditribution is not updated the delegate. Thank you very much

wiz0u commented 1 year ago

You can update to the latest prerelease version 3.5.1-dev.* for the latest github version or to the stable version 3.5.1 released just now.