Exemplo n.º 1
0
        public override void ToStream(Stream output)
        {
            output.Write(TLUtils.SignatureToBytes(Signature));

            Url.ToStream(output);
            WebPageId.ToStream(output);
            AuthorPhotoId.ToStream(output);
            Author.ToStream(output);
            Date.ToStream(output);
            Blocks.ToStream(output);
            Caption.ToStream(output);
        }
Exemplo n.º 2
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                Url.ToBytes(),
                WebPageId.ToBytes(),
                AuthorPhotoId.ToBytes(),
                Author.ToBytes(),
                Date.ToBytes(),
                Blocks.ToBytes(),
                Caption.ToBytes()));
 }