@kamuridesu/whatframework
Version:
A simple WhatsApp Bot Framework on top of Baileys
15 lines (14 loc) • 561 B
TypeScript
import { IBot, IMessage } from "../../@types/types.js";
import { WAMessage, proto } from "@whiskeysockets/baileys";
export declare function parseMessage(message: WAMessage, bot: IBot): Promise<IMessage | undefined>;
export declare function parseMetadata(context: {
originJid: string;
originalMessage: proto.IWebMessageInfo;
}, bot: IBot): {
messageSender: string;
senderName: string;
messageIsFrom: string;
senderIsOwner: boolean;
isGroup: boolean;
};
export declare function convertNumberToMention(text: string): string[] | string;