feat: Created automation for creating instances in the chatwoot bot with the command #inbox_whatsapp:<INSTANCE_NAME>

This commit is contained in:
Davidson Gomes
2023-07-17 15:37:49 -03:00
parent 71a3e75ae2
commit 0cb87e6ed9
5 changed files with 42 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ export class WAStartupService {
private endSession = false;
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
private chatwootService = new ChatwootService(waMonitor);
private chatwootService = new ChatwootService(waMonitor, this.configService);
public set instanceName(name: string) {
this.logger.verbose(`Initializing instance '${name}'`);