UNPKG

@vonage/messages

Version:

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

39 lines 1.2 kB
import { AbstractTextMessage } from '../AbstractTextMessage'; import { ViberActionParams } from '../../types'; import { ViberTextParams } from '../../types'; /** * Represents a text message for the Viber Service channel. * * @group Viber */ export declare class ViberText extends AbstractTextMessage implements ViberTextParams { channel: 'viber_service'; viberService: ViberActionParams; /** * Send a text message using the Viber Service channel. * * @param {ViberTextParams} params - The parameters for the ViberText message. * * @example * ```ts * import { ViberText } from '@vonage/messages'; * * const { messageUUID } = await messagesClient.send(new ViberText({ * to: TO_NUMBER, * from: FROM_NUMBER, * text: 'Hello world', * 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: ViberTextParams); } //# sourceMappingURL=ViberText.d.ts.map