getAttachment on the
narrowed platform instance. The returned
is
lazy. .read() and .stream() each trigger an independent download, so cache
.read() if you need the bytes more than once.
getAttachment requires @spectrum-ts/imessage. With
@spectrum-ts/imessage-local, it throws an
.
Local inbound attachments are still available through each incoming
message’s content.