mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Fix TLVector serialization with TLObject
This commit is contained in:
parent
b0b58be25e
commit
a0cdc2ae1a
|
|
@ -81,7 +81,7 @@ namespace TeleSharp.TL
|
|||
}
|
||||
else if (typeof(T).BaseType == typeof(TLObject))
|
||||
{
|
||||
var res = (TLObject) (Convert.ChangeType(item, typeof (TLObject)));
|
||||
var res = (TLObject)(object)item;
|
||||
res.SerializeBody(bw);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue