示例#1
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                Flags.ToBytes(),
                Caption.ToBytes(),
                ToBytes(ReplyMarkup, Flags, (int)InputBotInlineMessageFlags.ReplyMarkup)));
 }
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                File.ToBytes(),
                Caption.ToBytes(),
                GeoPoint.ToBytes(),
                Crop.ToBytes()));
 }
示例#3
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                File.ToBytes(),
                Duration.ToBytes(),
                W.ToBytes(),
                H.ToBytes(),
                MimeType.ToBytes(),
                Caption.ToBytes()));
 }
示例#4
0
 public override void ToStream(Stream output)
 {
     output.Write(TLUtils.SignatureToBytes(Signature));
     output.Write(Id.ToBytes());
     output.Write(AccessHash.ToBytes());
     output.Write(UserId.ToBytes());
     output.Write(Date.ToBytes());
     output.Write(Caption.ToBytes());
     Geo.ToStream(output);
     Sizes.ToStream(output);
 }
示例#5
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                Flags.ToBytes(),
                ToBytes(Url, Flags, (int)PageBlockEmbedFlags.Url),
                ToBytes(Html, Flags, (int)PageBlockEmbedFlags.Html),
                ToBytes(PosterPhotoId, Flags, (int)PageBlockEmbedFlags.PosterPhotoId),
                W.ToBytes(),
                H.ToBytes(),
                Caption.ToBytes()));
 }
示例#6
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                Id.ToBytes(),
                AccessHash.ToBytes(),
                UserId.ToBytes(),
                Date.ToBytes(),
                Caption.ToBytes(),
                Duration.ToBytes(),
                MimeType.ToBytes(),
                Size.ToBytes(),
                Thumb.ToBytes(),
                DCId.ToBytes(),
                W.ToBytes(),
                H.ToBytes()));
 }