copy

open fun copy(): BaseAttachment

Return

a cloned object to avoid the changing of the object passed by reference. for instance in case of forword MGMMessage with attachment