baileys-mongo
Version:
This package let you save in mongo the credentials to create whatsapp socket with Baileys package.
14 lines (13 loc) • 478 B
TypeScript
import { PrismaClient } from '@prisma/client';
import { CreateNewAuthResult } from '../../types';
export declare class BaileysMongo {
static _instance: BaileysMongo;
private constructor();
private readonly createNewAuth;
init: () => Promise<{
createNewAuth: (storeKey: string, payload?: Record<string, any>) => Promise<CreateNewAuthResult>;
}>;
getDb: () => Promise<PrismaClient>;
}
declare const _default: BaileysMongo;
export default _default;