UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

17 lines (16 loc) 637 B
import type { OrkestralEventEmitter } from '../../Models'; /** * Captures events from a orkestral event emitter & stores them in a file * @param ev The event emitter to read events from * @param filename File to save to */ export declare const captureEventStream: (ev: OrkestralEventEmitter, filename: string) => void; /** * Read event file and emit events from there * @param filename filename containing event data * @param delayIntervalMs delay between each event emit */ export declare const readAndEmitEventStream: (filename: string, delayIntervalMs?: number) => { ev: OrkestralEventEmitter; task: Promise<void>; };