nestwhats
Version:
A whatsapp-web.js wrapper for NestJS to create WhatsApp bots
19 lines (18 loc) • 1.03 kB
TypeScript
import { OnApplicationBootstrap, OnApplicationShutdown, OnModuleInit } from "@nestjs/common";
import { Client } from "whatsapp-web.js";
import { ClientsRegistryService } from "./clients-registry.service";
import { CommandsService } from "./commands/commands.service";
import { ListenerRegistryService } from "./listeners/listener-registry.service";
import { NestWhatsClientOptions } from "./nestwhats-options.interface";
export declare class NestWhatsClientService implements OnModuleInit, OnApplicationBootstrap, OnApplicationShutdown {
private readonly client;
private readonly options;
private readonly clientsRegistry;
private readonly commandsService;
private readonly listenerRegistry;
private readonly logger;
constructor(client: Client, options: NestWhatsClientOptions, clientsRegistry: ClientsRegistryService, commandsService: CommandsService, listenerRegistry: ListenerRegistryService);
onModuleInit(): void;
onApplicationBootstrap(): void;
onApplicationShutdown(): Promise<void>;
}