Attachment: {
    attachmentId: string;
    attachmentName: string;
    attachmentSize: number;
    attachmentUrl: string;
    contentType: string;
}

The attachment metadata received in the response to SendMessage or MessageEvent (in case of message of type attachment).

Type declaration

  • attachmentId: string

    The identifier for the attachment.

  • attachmentName: string

    The name of the attachment.

  • attachmentSize: number

    The size of the attachment in bytes.

  • attachmentUrl: string

    The URL to access/download the attachment.

  • contentType: string

    The content type of the attachment.