UNPKG

@zenvia/sdk

Version:

This SDK for [Node.js](https://nodejs.org/) was created based on the [Zenvia](https://www.zenvia.com/) [API](https://zenvia.github.io/zenvia-openapi-spec/).

26 lines 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileContent = void 0; const abstract_content_1 = require("./abstract-content"); /** * Implementation of file content. */ class FileContent extends abstract_content_1.AbstractContent { /** * Returns a new `FileContent` that can be used to send audio, image, video, or document media to your customer. * * @param url The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. * @param mimeType A media type to indicates the nature and format of a media. * @param caption Describes the specified audio, image, video, or document media. * @param name The file name of the specified audio, image, video, or document media. */ constructor(url, mimeType, caption, name) { super('file'); this.fileUrl = url; this.fileMimeType = mimeType; this.fileCaption = caption; this.fileName = name; } } exports.FileContent = FileContent; //# sourceMappingURL=file.js.map