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/).

21 lines (20 loc) 895 B
import { AbstractContent } from './abstract-content'; import { IFileContent } from '../../types'; /** * Implementation of file content. */ export declare class FileContent extends AbstractContent implements IFileContent { fileUrl: string; fileMimeType: string; fileCaption: string; fileName: string; /** * 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: string, mimeType: string, caption?: string, name?: string); }