mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Fix InvalidCastException in TLRequestGetStickerSet (#905)
When trying to SendRequest it was throwing an exception saying "cannot cast object of type TeleSharp.TL.TLStickerSet to TeleSharp.TL.Messages.TLStickerSet" Fixes https://github.com/sochix/TLSharp/issues/826
This commit is contained in:
parent
90f9305dd6
commit
43f16e879e
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLStickerSet Set { get; set; }
|
||||
public TL.TLStickerSet Set { get; set; }
|
||||
public TLVector<TLStickerPack> Packs { get; set; }
|
||||
public TLVector<TLAbsDocument> Documents { get; set; }
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Set = (TLStickerSet)ObjectUtils.DeserializeObject(br);
|
||||
Set = (TL.TLStickerSet)ObjectUtils.DeserializeObject(br);
|
||||
Packs = (TLVector<TLStickerPack>)ObjectUtils.DeserializeVector<TLStickerPack>(br);
|
||||
Documents = (TLVector<TLAbsDocument>)ObjectUtils.DeserializeVector<TLAbsDocument>(br);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue