Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/baileys/lib/Utils/baileys-event-stream.d.ts
1129 views
1
import type { CommonBaileysEventEmitter } from '../Types';
2
/**
3
* Captures events from a baileys event emitter & stores them in a file
4
* @param ev The event emitter to read events from
5
* @param filename File to save to
6
*/
7
export declare const captureEventStream: (ev: CommonBaileysEventEmitter<any>, filename: string) => void;
8
/**
9
* Read event file and emit events from there
10
* @param filename filename containing event data
11
* @param delayIntervalMs delay between each event emit
12
*/
13
export declare const readAndEmitEventStream: (filename: string, delayIntervalMs?: number) => {
14
ev: CommonBaileysEventEmitter<any>;
15
task: Promise<void>;
16
};
17
18