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

[FTL] Cannot find type for ctor #8f97c628 #176

Closed askovpen closed 1 year ago

askovpen commented 1 year ago

many errors in log during login like this. nuget 3.5.3 (api 160) but login ok

[FTL] (WTelegram.Client[9]) 1>An exception occured in the reactor: WTelegram.WTException: Cannot find type for ctor #8f97c628

up:

dcb82ea3 also missing

[ERR] (WTelegram.Client[12]) While deserializing vector<%Message>: WTelegram.WTException: Cannot find type for ctor #dcb82ea3
   at TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb)
   at TL.Serialization.ReadTLValue(BinaryReader reader, Type type)
    at TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb)
   at TL.Serialization.ReadTLValue(BinaryReader reader, Type type)
   at TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb)
   at WTelegram.Client.ReadMsgContainer(BinaryReader reader)
wiz0u commented 1 year ago

Such errors may happen initially (right after LoginUserIfNeeded) when you just updated your version of WTelegramClient. (this is because old updates based on previous version of the API layer have accumulated while your client was stopped)

In which case, some errors like this may show up in the logs but WTelegramClient should be able to ignore the errors and continue execution normally (no exceptions raised). After the initial batch of updates, that error should not show up again.

Keep me informed if you still see this error (for that user account), or if it no longer happens.