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) 631 B
import * as constants from './constants'; /** * the binary node WA uses internally for communication * * this is manipulated soley as an object and it does not have any functions. * This is done for easy serialization, to prevent running into issues with prototypes & * to maintain functional code structure * */ export type BinaryNode = { tag: string; attrs: { [key: string]: string; }; content?: BinaryNode[] | string | Uint8Array; }; export type BinaryNodeAttributes = BinaryNode['attrs']; export type BinaryNodeData = BinaryNode['content']; export type BinaryNodeCodingOptions = typeof constants;