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

19 lines (18 loc) 679 B
import { proto } from '../../Connection/enc'; import { SignalRepository } from '../../Models'; import { BinaryNode } from '../../Internal'; /** * Decode the received node as a message. * @note this will only parse the message, not decrypt it */ export declare function decodeMessageNode(stanza: BinaryNode, meId: string, meLid: string): { fullMessage: proto.IWebMessageInfo; author: string; sender: string; }; export declare const decryptMessageNode: (stanza: BinaryNode, meId: string, meLid: string, repository: SignalRepository, logger: any) => { fullMessage: proto.IWebMessageInfo; category: string; author: string; decrypt(): Promise<void>; };