UNPKG

baileys-mongo

Version:

This package let you save in mongo the credentials to create whatsapp socket with Baileys package.

12 lines (11 loc) 372 B
import { PrismaClient } from '@prisma/client'; import { AuthenticationState } from '@whiskeysockets/baileys'; import AuthHandler from '../models/auth-handler/AuthHandler'; export interface CreateNewAuthResult { auth: AuthHandler; mongoDB: PrismaClient; } export interface useAuthHandlerResult { state: AuthenticationState; saveState: () => Promise<any>; }