34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { OnModuleInit, OnModuleDestroy } from '@nestjs/common';
|
|
import { ConfigService } from '@nestjs/config';
|
|
import { HttpService } from '@nestjs/axios';
|
|
export declare class WorkerService implements OnModuleInit, OnModuleDestroy {
|
|
private config;
|
|
private http;
|
|
private readonly logger;
|
|
private isRunning;
|
|
private readonly apiUrl;
|
|
private readonly workerKey;
|
|
private readonly openwaUrl;
|
|
private readonly openwaApiKey;
|
|
private readonly intervalMs;
|
|
private sesionesCache;
|
|
private sesionesCacheTimestamp;
|
|
private readonly SESIONES_CACHE_TTL;
|
|
constructor(config: ConfigService, http: HttpService);
|
|
onModuleInit(): void;
|
|
onModuleDestroy(): void;
|
|
private timestamp;
|
|
private procesarCiclo;
|
|
private procesar;
|
|
private obtenerPendiente;
|
|
private obtenerSesionesDisponibles;
|
|
private obtenerSesionRandom;
|
|
private procesarMensaje;
|
|
private calcularDelayEscritura;
|
|
private calcularDelayEntreMensajes;
|
|
private delay;
|
|
private setTyping;
|
|
private enviarTexto;
|
|
private enviarImagen;
|
|
private actualizarEstado;
|
|
}
|