mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 03:29:14 +00:00
212 lines
6.1 KiB
HTML
212 lines
6.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta name="generator" content="JSDoc 3.6.7">
|
|
<meta charset="utf-8">
|
|
<title>whatsapp-web.js 1.17.0 » Source: util/Constants.js</title>
|
|
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Karla:400,400i,700,700i" type="text/css">
|
|
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Noto+Serif:400,400i,700,700i" type="text/css">
|
|
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
|
<link href="css/baseline.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body onload="prettyPrint()">
|
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
|
<div id="jsdoc-navbar-container">
|
|
<div id="jsdoc-navbar-content">
|
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>17.<wbr>0</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div id="jsdoc-body-container">
|
|
<div id="jsdoc-content">
|
|
<div id="jsdoc-content-container">
|
|
<div id="jsdoc-banner" role="banner">
|
|
</div>
|
|
<div id="jsdoc-main" role="main">
|
|
<header class="page-header">
|
|
<h1>Source: util/Constants.js</h1>
|
|
</header>
|
|
<article>
|
|
<pre class="prettyprint linenums"><code>'use strict';
|
|
|
|
exports.WhatsWebURL = 'https://web.whatsapp.com/';
|
|
|
|
exports.DefaultOptions = {
|
|
puppeteer: {
|
|
headless: true,
|
|
defaultViewport: null
|
|
},
|
|
authTimeoutMs: 0,
|
|
qrMaxRetries: 0,
|
|
takeoverOnConflict: false,
|
|
takeoverTimeoutMs: 0,
|
|
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36',
|
|
ffmpegPath: 'ffmpeg',
|
|
bypassCSP: false
|
|
};
|
|
|
|
/**
|
|
* Client status
|
|
* @readonly
|
|
* @enum {number}
|
|
*/
|
|
exports.Status = {
|
|
INITIALIZING: 0,
|
|
AUTHENTICATING: 1,
|
|
READY: 3
|
|
};
|
|
|
|
/**
|
|
* Events that can be emitted by the client
|
|
* @readonly
|
|
* @enum {string}
|
|
*/
|
|
exports.Events = {
|
|
AUTHENTICATED: 'authenticated',
|
|
AUTHENTICATION_FAILURE: 'auth_failure',
|
|
READY: 'ready',
|
|
MESSAGE_RECEIVED: 'message',
|
|
MESSAGE_CREATE: 'message_create',
|
|
MESSAGE_REVOKED_EVERYONE: 'message_revoke_everyone',
|
|
MESSAGE_REVOKED_ME: 'message_revoke_me',
|
|
MESSAGE_ACK: 'message_ack',
|
|
MEDIA_UPLOADED: 'media_uploaded',
|
|
GROUP_JOIN: 'group_join',
|
|
GROUP_LEAVE: 'group_leave',
|
|
GROUP_UPDATE: 'group_update',
|
|
QR_RECEIVED: 'qr',
|
|
DISCONNECTED: 'disconnected',
|
|
STATE_CHANGED: 'change_state',
|
|
BATTERY_CHANGED: 'change_battery',
|
|
INCOMING_CALL: 'incoming_call'
|
|
};
|
|
|
|
/**
|
|
* Message types
|
|
* @readonly
|
|
* @enum {string}
|
|
*/
|
|
exports.MessageTypes = {
|
|
TEXT: 'chat',
|
|
AUDIO: 'audio',
|
|
VOICE: 'ptt',
|
|
IMAGE: 'image',
|
|
VIDEO: 'video',
|
|
DOCUMENT: 'document',
|
|
STICKER: 'sticker',
|
|
LOCATION: 'location',
|
|
CONTACT_CARD: 'vcard',
|
|
CONTACT_CARD_MULTI: 'multi_vcard',
|
|
ORDER: 'order',
|
|
REVOKED: 'revoked',
|
|
PRODUCT: 'product',
|
|
UNKNOWN: 'unknown',
|
|
GROUP_INVITE: 'groups_v4_invite',
|
|
LIST: 'list',
|
|
LIST_RESPONSE: 'list_response',
|
|
BUTTONS_RESPONSE: 'buttons_response',
|
|
PAYMENT: 'payment',
|
|
BROADCAST_NOTIFICATION: 'broadcast_notification',
|
|
CALL_LOG: 'call_log',
|
|
CIPHERTEXT: 'ciphertext',
|
|
DEBUG: 'debug',
|
|
E2E_NOTIFICATION: 'e2e_notification',
|
|
GP2: 'gp2',
|
|
GROUP_NOTIFICATION: 'group_notification',
|
|
HSM: 'hsm',
|
|
INTERACTIVE: 'interactive',
|
|
NATIVE_FLOW: 'native_flow',
|
|
NOTIFICATION: 'notification',
|
|
NOTIFICATION_TEMPLATE: 'notification_template',
|
|
OVERSIZED: 'oversized',
|
|
PROTOCOL: 'protocol',
|
|
REACTION: 'reaction',
|
|
TEMPLATE_BUTTON_REPLY: 'template_button_reply',
|
|
};
|
|
|
|
/**
|
|
* Group notification types
|
|
* @readonly
|
|
* @enum {string}
|
|
*/
|
|
exports.GroupNotificationTypes = {
|
|
ADD: 'add',
|
|
INVITE: 'invite',
|
|
REMOVE: 'remove',
|
|
LEAVE: 'leave',
|
|
SUBJECT: 'subject',
|
|
DESCRIPTION: 'description',
|
|
PICTURE: 'picture',
|
|
ANNOUNCE: 'announce',
|
|
RESTRICT: 'restrict',
|
|
};
|
|
|
|
/**
|
|
* Chat types
|
|
* @readonly
|
|
* @enum {string}
|
|
*/
|
|
exports.ChatTypes = {
|
|
SOLO: 'solo',
|
|
GROUP: 'group',
|
|
UNKNOWN: 'unknown'
|
|
};
|
|
|
|
/**
|
|
* WhatsApp state
|
|
* @readonly
|
|
* @enum {string}
|
|
*/
|
|
exports.WAState = {
|
|
CONFLICT: 'CONFLICT',
|
|
CONNECTED: 'CONNECTED',
|
|
DEPRECATED_VERSION: 'DEPRECATED_VERSION',
|
|
OPENING: 'OPENING',
|
|
PAIRING: 'PAIRING',
|
|
PROXYBLOCK: 'PROXYBLOCK',
|
|
SMB_TOS_BLOCK: 'SMB_TOS_BLOCK',
|
|
TIMEOUT: 'TIMEOUT',
|
|
TOS_BLOCK: 'TOS_BLOCK',
|
|
UNLAUNCHED: 'UNLAUNCHED',
|
|
UNPAIRED: 'UNPAIRED',
|
|
UNPAIRED_IDLE: 'UNPAIRED_IDLE'
|
|
};
|
|
|
|
/**
|
|
* Message ACK
|
|
* @readonly
|
|
* @enum {number}
|
|
*/
|
|
exports.MessageAck = {
|
|
ACK_ERROR: -1,
|
|
ACK_PENDING: 0,
|
|
ACK_SERVER: 1,
|
|
ACK_DEVICE: 2,
|
|
ACK_READ: 3,
|
|
ACK_PLAYED: 4,
|
|
};
|
|
</code></pre>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
<nav id="jsdoc-toc-nav" role="navigation"></nav>
|
|
</div>
|
|
</div>
|
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
|
<div id="jsdoc-footer-container">
|
|
<p>
|
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on June 21, 2022.
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
<script src="scripts/jquery.min.js"></script>
|
|
<script src="scripts/tree.jquery.js"></script>
|
|
<script src="scripts/prettify.js"></script>
|
|
<script src="scripts/jsdoc-toc.js"></script>
|
|
<script src="scripts/linenumber.js"></script>
|
|
<script src="scripts/scrollanchor.js"></script>
|
|
</body>
|
|
|
|
</html> |