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())); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), File.ToBytes(), Duration.ToBytes(), W.ToBytes(), H.ToBytes(), MimeType.ToBytes(), Caption.ToBytes())); }
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); }
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())); }
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())); }