UNPKG

n8n-nodes-zalo-nnt

Version:

Unofficial Zalo integration for n8n - Send messages, manage groups, user operations with QR login. No API key required, works via browser simulation.

16 lines (15 loc) 777 B
import { API } from 'zca-js'; import { IHookFunctions } from 'n8n-workflow'; import { WebhookData } from './types'; import { EventFilter } from './EventFilter'; export declare class CatchUpManager { private readonly cooldownMs; private lastRunAt; constructor(cooldownMs?: number); shouldRun(now?: number): boolean; markRun(now?: number): void; remainingCooldown(now?: number): number; } export declare function resolveCatchUpThreadTypes(threadTypes: string[]): number[]; export declare function requestCatchUp(apiInstance: API, threadTypes: number[]): boolean; export declare function registerCatchUp(hookFunctions: IHookFunctions, apiInstance: API, webhookData: WebhookData, filter: EventFilter, threadTypes: string[], manager?: CatchUpManager): void;