UNPKG

whatsauto.js

Version:

Easy WhatsApp Automation with Session

11 lines (10 loc) 634 B
export class CREDENTIALS { static DIR_NAME = "wa_creds"; static PREFIX = "_creds"; } export class Messages { static sessionAlreadyExist = (sessionId) => `Session ID "${sessionId}" is already exist, Try another Session ID.`; static sessionNotFound = (sessionId) => `Session with ID "${sessionId}" Not Exist!`; static paremetersRequired = (props) => `Parameter ${typeof props == "string" ? props : props instanceof Array ? props.join(", ") : ""} is required`; static paremetersNotValid = (props) => `Parameter ${typeof props == "string" ? props : props instanceof Array ? props.join(", ") : ""} is not valid`; }