wiz0u / WTelegramClient

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

Cannot find type for ctor #38116ee0 #245

Closed gi4nnii closed 5 months ago

gi4nnii commented 5 months ago

Hi I'm getting this exception

Cannot find type for ctor #38116ee0

also, can't understand this on line 83 on TL.cs

if (ctorNb == Layer.GZipedCtor) return reader.ReadTLGzipped();

if reader.ReadTLGzipped() is defined as

object ReadTLGzipped(this BinaryReader reader, Type type)

and of course compiler ask me to specify a type, I made it run using the previous

(IObject)reader.ReadTLGzipped(typeof(IObject));

but I highly doubt about it.

Thank you

wiz0u commented 5 months ago

Duplicate of #191

return reader.ReadTLGzipped();

You're right, I will fix that soon. That line wasn't used anymore since #if MTPG is active (I recommend using WTelegramClient from Nuget package rather than from sources)

wiz0u commented 5 months ago

Duplicate of #191