public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.id = StreamingUtils.readInt(stream); if ((this.flags & 0x100) != 0) { this.fromId = StreamingUtils.readInt(stream); } this.toId = StreamingUtils.readTLObject(stream, context); if ((this.flags & 4) != 0) { this.fwdFrom = StreamingUtils.readTLObject(stream, context); } if ((this.flags & 0x800) != 0) { this.viaBotId = StreamingUtils.readInt(stream); } if ((this.flags & 8) != 0) { this.replyToMsgId = StreamingUtils.readInt(stream); } this.date = StreamingUtils.readInt(stream); this.message = StreamingUtils.readTLString(stream); if ((this.flags & 0x200) != 0) { this.media = StreamingUtils.readTLObject(stream, context); } if ((this.flags & 0x40) != 0) { this.replyMarkup = StreamingUtils.readTLObject(stream, context); } if ((this.flags & 0x80) != 0) { this.entities = StreamingUtils.readTLVector(stream, context); } if ((this.flags & 0x400) != 0) { this.views = StreamingUtils.readInt(stream); } if ((this.flags & 0x8000) != 0) { this.editDate = StreamingUtils.readInt(stream); } }
public virtual void setFwdFrom(TLMessageFwdHeader fwdFrom) { this.fwdFrom = fwdFrom; }