UNPKG

whatsauto.js

Version:

Easy WhatsApp Automation with Session

21 lines 1.09 kB
import { proto } from "@whiskeysockets/baileys"; import { IWAutoMessage, IWAutoPhoneToJid, WAutoMessageUpdated } from "../Types"; export declare const getMediaMimeType: (msg: IWAutoMessage) => string; export declare const parseMessageStatusCodeToReadable: (code: proto.WebMessageInfo.Status) => WAutoMessageUpdated["messageStatus"]; export declare const phoneToJid: ({ from, isGroup, reverse, }: IWAutoPhoneToJid) => string; export declare const createDelay: (duration?: number) => Promise<unknown>; export declare const is: { array: (array: any) => boolean; undefined: (elem: any) => boolean; file: (file: any) => boolean; object: (object: any) => boolean; string: (str: any) => boolean; }; export declare const to: { string: (str: any) => string; undefined: (str: any, defaultValue?: any) => string | number | undefined; }; export declare const isSessionExist: (sessionId: string) => boolean; export declare const setCredentialsDir: (dirname: string) => void; export declare const getBuffer: (url: string) => Promise<Buffer>; //# sourceMappingURL=helper.d.ts.map