@vonage/messages
Version:
Multi-channel messaging that integrates WhatsApp, Facebook, Viber, SMS, and MMS
31 lines • 1.09 kB
TypeScript
import { MessengerType } from '../Channels';
/**
* Represents a request to send a file message via the Messenger channel.
*
* @group Messenger
* @category Requests
*
* @remarks
* Vonage API's will return information using `snake_case`. This represents the
* pure request structure before it's transformed into `snake_case` for the API call.
*/
export type MessengerFileRequest = {
/** A client reference string for tracking the message. */
client_ref: string;
/** The message type, which is set to 'file' for a file message. */
message_type: 'file';
/** The file content of the message, including the URL of the file. */
file: {
/** The URL of the file. */
url: string;
};
/** The recipient of the message. */
to: string;
/** The sender of the message. */
from: string;
/** The channel for sending the message, which is set to 'messenger'. */
channel: 'messenger';
/** Additional details about the Messenger message type. */
messenger: MessengerType;
};
//# sourceMappingURL=MessengerFileRequest.d.ts.map