29 lines
932 B
TypeScript
29 lines
932 B
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;
|
|
constructor(config: ConfigService, http: HttpService);
|
|
onModuleInit(): void;
|
|
onModuleDestroy(): void;
|
|
private timestamp;
|
|
private procesarCiclo;
|
|
private procesar;
|
|
private obtenerPendiente;
|
|
private procesarMensaje;
|
|
private calcularDelayEscritura;
|
|
private calcularDelayEntreMensajes;
|
|
private delay;
|
|
private setTyping;
|
|
private enviarTexto;
|
|
private enviarImagen;
|
|
private actualizarEstado;
|
|
}
|