UNPKG

nestwhats

Version:

A whatsapp-web.js wrapper for NestJS to create WhatsApp bots

16 lines (15 loc) 800 B
import { OnApplicationBootstrap, OnModuleInit } from "@nestjs/common"; import { Client } from "whatsapp-web.js"; import { ExplorerService } from "../nestwhats-explorer.service"; import { NestWhatsModuleOptions } from "../nestwhats-options.interface"; import { CommandDiscovery } from "./command.discovery"; import { CommandsService } from "./commands.service"; export declare class CommandsModule implements OnModuleInit, OnApplicationBootstrap { private readonly options; private readonly client; private readonly explorerService; private readonly commandsService; constructor(options: NestWhatsModuleOptions, client: Client, explorerService: ExplorerService<CommandDiscovery>, commandsService: CommandsService); onModuleInit(): void; onApplicationBootstrap(): Client; }