UNPKG

@vonage/messages

Version:

Multi-channel messaging that integrates WhatsApp, Facebook, Viber, SMS, and MMS

24 lines 680 B
import { MessageTypes } from '../enums/MessageTypes'; import { MessageParams } from './MessageParams'; export type MessageContentObject = { /** * The type of attachment. */ type: 'image' | 'audio' | 'video' | 'vcard' | 'file'; /** * The URL of the attachment. */ url: string; /** * Additional text to accompany the attachment. */ content?: string; }; /** * Represents the parameters for a message with an content attachment. */ export type MessageParamsContent = { messageType: MessageTypes.CONTENT | string; content: Array<MessageContentObject>; } & MessageParams; //# sourceMappingURL=MessageParamsContent.d.ts.map