adonisjs-whatsapp
Version:
Connect your WhatsApp Cloud API with AdonisJS
13 lines (12 loc) • 450 B
TypeScript
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;
}