Example #1
0
        public override void ToStream(Stream output)
        {
            output.Write(TLUtils.SignatureToBytes(Signature));

            Bot.ToStream(output);
            Peer.ToStream(output);
            RandomId.ToStream(output);
            StartParam.ToStream(output);
        }
 public override void ToStream(Stream output)
 {
     output.Write(TLUtils.SignatureToBytes(Signature));
     Media.ToStream(output);
     Flags.ToStream(output);
     RandomId.ToStream(output);
     Message.ToStream(output);
     ToStream(output, Entities, Flags, (int)InputSingleMediaFlags.Entities);
 }
 public override void ToStream(Stream output)
 {
     output.Write(TLUtils.SignatureToBytes(Signature));
     RandomId.ToStream(output);
     ChatId.ToStream(output);
     Date.ToStream(output);
     Bytes.ToStream(output);
     File.ToStream(output);
 }
        public override void ToStream(Stream output)
        {
            output.Write(TLUtils.SignatureToBytes(Signature));

            Flags.ToStream(output);
            Peer.ToStream(output);
            ToStream(output, ReplyToMsgId, Flags, (int)SendFlags.ReplyToMsgId);
            RandomId.ToStream(output);
            QueryId.ToStream(output);
            Id.ToStream(output);
        }
Example #5
0
        public override void ToStream(Stream output)
        {
            output.Write(TLUtils.SignatureToBytes(Signature));

            Flags.ToStream(output);
            Peer.ToStream(output);
            ToStream(output, ReplyToMsgId, Flags, (int)SendFlags.Reply);
            Message.ToStream(output);
            RandomId.ToStream(output);
            ToStream(output, ReplyMarkup, Flags, (int)SendFlags.ReplyMarkup);
            ToStream(output, Entities, Flags, (int)SendFlags.Entities);
        }