UNPKG

evolution-api-sdk

Version:

Unofficial SDK for the Evolution Whatsapp API v2

42 lines (40 loc) 969 B
/** * Options for presence configuration */ interface PresenceOptions { /** * Delay of the presence in milliseconds */ delay: number; /** * Presence state * - `composing`: typing a message * - `recording`: recording an audio */ presence: "composing" | "recording"; /** * Chat number or JID to receive the presence */ number: string; } /** * Input parameters for the presence method (excluding number) */ interface PresenceParams { /** * Delay of the presence in milliseconds */ delay: number; /** * Presence state * - `composing`: typing a message * - `recording`: recording an audio */ presence: "composing" | "recording"; /** * Whether to wait until the presence is finished (duration) * @deprecated This parameter is not used by the Evolution API */ waitUntilFinish?: boolean; } export type { PresenceOptions, PresenceParams };