UNPKG

whatsapp.ts

Version:

A simple Node.js library for simplifying WhatsApp Web socket connection using the WhiskeySockets/Baileys library.

11 lines (10 loc) 292 B
import { AuthenticationState, SocketConfig } from 'baileys'; export interface WhatsAppAPIOptions { sessionPath?: string; deviceName?: string; baileysOptions?: Partial<SocketConfig>; auth?: { state: AuthenticationState; saveCreds: () => Promise<void>; }; }