@brighthustle/adonisjs-whatsapp
Version:
Connect your WhatsApp Cloud API with AdonisJS
25 lines (24 loc) • 1.01 kB
TypeScript
import { ComponentOptions } from '@ioc:Adonis/Addons/WhatsApp';
import { Msg91TemplatePayload } from './types/types';
export default class Helpers {
static isUrl(string: string): boolean;
static translateType(type: string): 'text' | 'image' | 'document' | 'audio' | 'video' | 'sticker' | 'location' | 'contacts' | 'button' | 'list';
static translateInteractive(message: Record<string, any>): {
type: string;
data: {
id: string;
title: string;
description?: string | undefined;
};
} | null;
static translateInteractiveMsg91(message: Record<string, any>): {
type: string;
data: {
id: string;
title: string;
description?: string | undefined;
};
} | null;
static transformToMsg91SendTemplate(integrated_number: string, name: string, language: string, components: ComponentOptions[], to: number): Msg91TemplatePayload;
private static extractParameterValue;
}