UNPKG

@vonage/messages

Version:

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

49 lines 1.52 kB
import { AbstractVideoMessage } from '../AbstractVideoMessage'; import { ViberVideoParams } from '../../types'; import { Channels } from '../../enums'; /** * Represents a video message for the Viber Service channel. * * @group Viber */ export declare class ViberVideo extends AbstractVideoMessage implements ViberVideoParams { /** * The channel for this message (always 'viber_service'). */ channel: Channels.VIBER; viberService: { duration: string; fileSize: string; } & { action: import("../../types").ViberAction; } & import("../../types").ViberService; /** * Send a video message using the Viber Service channel. * * @param {ViberVideoParams} params - The parameters for the ViberVideo message. * @example * ```ts * import { ViberVideo } from '@vonage/messages'; * * const { messageUUID } = await messagesClient.send(new ViberVideo({ * to: TO_NUMBER, * from: FROM_NUMBER, * text: 'Hello world', * video: { * url: 'https://my-host.com/my-video.mp4', * }, * viberService: { * action: { * url: 'https://my-host.com/my-path', * text: 'My button text', * }, * }, * clientRef: 'my-personal-reference', * })); * * console.log(`Message sent successfully with UUID ${messageUUID}`); * ``` */ constructor(params: Omit<ViberVideoParams, 'channel' | 'messageType'>); } //# sourceMappingURL=ViberVideo.d.ts.map