public override TLObject FromStream(Stream input) { Flags = GetObject <TLInt>(input); UserId = GetObject <TLInt>(input); KickedBy = GetObject <TLInt>(input); Date = GetObject <TLInt>(input); BannedRights = GetObject <TLChannelBannedRights>(input); return(this); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowExceptionIfIncorrect(ref position, Signature); Flags = GetObject <TLInt>(bytes, ref position); UserId = GetObject <TLInt>(bytes, ref position); KickedBy = GetObject <TLInt>(bytes, ref position); Date = GetObject <TLInt>(bytes, ref position); BannedRights = GetObject <TLChannelBannedRights>(bytes, ref position); return(this); }