getAttachment on the
narrowed platform instance. The returned
Attachment 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
UnsupportedError.
Local inbound attachments are still available through each incoming
message’s content.