chore: mark version v1.16.0
This commit is contained in:
parent
1f4328c7a3
commit
979e97ea42
57 changed files with 1710 additions and 714 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Base</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Base</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
65
docs/BaseAuthStrategy.html
Normal file
65
docs/BaseAuthStrategy.html
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>whatsapp-web.js 1.16.0 » Class: BaseAuthStrategy</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>16.<wbr>0</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<div id="jsdoc-body-container">
|
||||||
|
<div id="jsdoc-content">
|
||||||
|
<div id="jsdoc-content-container">
|
||||||
|
<div id="jsdoc-main" role="main">
|
||||||
|
<header class="page-header">
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-kind">class</span></div>
|
||||||
|
<h1><small></small><span class="symbol-name">BaseAuthStrategy</span></h1>
|
||||||
|
<p class="source-link">Source: <a href="authStrategies_BaseAuthStrategy.js.html#source-line-6">authStrategies/<wbr>BaseAuthStrategy.<wbr>js:6</a></p>
|
||||||
|
<div class="symbol-classdesc">
|
||||||
|
<p>Base class which all authentication strategies extend</p>
|
||||||
|
</div>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
</header>
|
||||||
|
<section id="summary">
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2 id="BaseAuthStrategy">new <span class="symbol-name">BaseAuthStrategy</span><span class="signature"><span class="signature-params">()</span></span></h2>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
</section>
|
||||||
|
</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 February 27, 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>
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: BusinessContact</title>
|
<title>whatsapp-web.js 1.16.0 » Class: BusinessContact</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -111,19 +111,22 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="BusinessContact.html#getCommonGroups">getCommonGroups()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="BusinessContact.html#getCountryCode">getCountryCode()</a></dt>
|
<dt><a href="BusinessContact.html#getCountryCode">getCountryCode()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="BusinessContact.html#getFormattedNumber">getFormattedNumber()</a></dt>
|
<dt><a href="BusinessContact.html#getFormattedNumber">getFormattedNumber()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="BusinessContact.html#getProfilePicUrl">getProfilePicUrl()</a></dt>
|
|
||||||
<dd>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="BusinessContact.html#getProfilePicUrl">getProfilePicUrl()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="BusinessContact.html#unblock">unblock()</a></dt>
|
<dt><a href="BusinessContact.html#unblock">unblock()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -269,6 +272,15 @@
|
||||||
<dd></dd>
|
<dd></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="getCommonGroups"><span class="symbol-name">getCommonGroups</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing Array of WAWebJS.ChatId</span></span></h3>
|
||||||
|
<p>Gets the Contact's common groups with you. Returns empty array if you don't have any common group.</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Inherited from</dt>
|
||||||
|
<dd><a href="Contact.html#getCommonGroups">Contact#getCommonGroups</a></dd>
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="getCountryCode"><span class="symbol-name">getCountryCode</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing string</span></span></h3>
|
<h3 id="getCountryCode"><span class="symbol-name">getCountryCode</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing string</span></span></h3>
|
||||||
<p>Returns the contact's countrycode, (1541859685@c.us) => (1)</p>
|
<p>Returns the contact's countrycode, (1541859685@c.us) => (1)</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
|
|
@ -314,7 +326,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Buttons</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Buttons</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -234,7 +234,7 @@ Returns: [{ buttonId:'customId',buttonText:{'displayText':&#
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Call</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Call</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -144,7 +144,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Chat</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Chat</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -483,7 +483,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
280
docs/Client.html
280
docs/Client.html
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Client</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Client</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<div class="symbol-detail-labels"><span class="label label-kind">class</span></div>
|
<div class="symbol-detail-labels"><span class="label label-kind">class</span></div>
|
||||||
<h1><small></small><span class="symbol-name">Client</span></h1>
|
<h1><small></small><span class="symbol-name">Client</span></h1>
|
||||||
<p class="source-link">Source: <a href="Client.js.html#source-line-53">Client.<wbr>js:53</a></p>
|
<p class="source-link">Source: <a href="Client.js.html#source-line-49">Client.<wbr>js:49</a></p>
|
||||||
<div class="symbol-classdesc">
|
<div class="symbol-classdesc">
|
||||||
<p>Starting point for interacting with the WhatsApp Web API</p>
|
<p>Starting point for interacting with the WhatsApp Web API</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
<div class="summary-content">
|
<div class="summary-content">
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
<dt><a href="Client.html#acceptGroupV4Invite">acceptGroupV4Invite(inviteV4)</a></dt>
|
<dt><a href="Client.html#acceptGroupV4Invite">acceptGroupV4Invite(inviteInfo)</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="Client.html#acceptInvite">acceptInvite(inviteCode)</a></dt>
|
<dt><a href="Client.html#acceptInvite">acceptInvite(inviteCode)</a></dt>
|
||||||
|
|
@ -85,19 +85,22 @@
|
||||||
<dt><a href="Client.html#getChatsByLabelId">getChatsByLabelId(labelId)</a></dt>
|
<dt><a href="Client.html#getChatsByLabelId">getChatsByLabelId(labelId)</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt><a href="Client.html#getCommonGroups">getCommonGroups(contactId)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Client.html#getContactById">getContactById(contactId)</a></dt>
|
<dt><a href="Client.html#getContactById">getContactById(contactId)</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="Client.html#getContacts">getContacts()</a></dt>
|
<dt><a href="Client.html#getContacts">getContacts()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="Client.html#getCountryCode">getCountryCode(number)</a></dt>
|
|
||||||
<dd>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Client.html#getCountryCode">getCountryCode(number)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Client.html#getFormattedNumber">getFormattedNumber(number)</a></dt>
|
<dt><a href="Client.html#getFormattedNumber">getFormattedNumber(number)</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -134,13 +137,13 @@
|
||||||
<dt><a href="Client.html#markChatUnread">markChatUnread(chatId)</a></dt>
|
<dt><a href="Client.html#markChatUnread">markChatUnread(chatId)</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="Client.html#muteChat">muteChat(chatId, unmuteDate)</a></dt>
|
|
||||||
<dd>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Client.html#muteChat">muteChat(chatId, unmuteDate)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Client.html#pinChat">pinChat()</a></dt>
|
<dt><a href="Client.html#pinChat">pinChat()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -156,6 +159,9 @@
|
||||||
<dt><a href="Client.html#sendPresenceAvailable">sendPresenceAvailable()</a></dt>
|
<dt><a href="Client.html#sendPresenceAvailable">sendPresenceAvailable()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt><a href="Client.html#sendPresenceUnavailable">sendPresenceUnavailable()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Client.html#sendSeen">sendSeen(chatId)</a></dt>
|
<dt><a href="Client.html#sendSeen">sendSeen(chatId)</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -284,6 +290,20 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>authStrategy</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Determines how to save and restore sessions. Will use LegacySessionAuth if options.session is set. Otherwise, NoAuth will be used.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>authTimeoutMs</p>
|
<p>authTimeoutMs</p>
|
||||||
|
|
@ -312,34 +332,6 @@
|
||||||
<p>Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/</p>
|
<p>Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>qrRefreshIntervalMs</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p>Refresh interval for qr code (how much time to wait before checking if the qr code has changed)</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>qrTimeoutMs</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p>Timeout for qr code selector in puppeteer</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>qrMaxRetries</p>
|
<p>qrMaxRetries</p>
|
||||||
|
|
@ -365,7 +357,7 @@
|
||||||
<p> </p>
|
<p> </p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>Restart client with a new session (i.e. use null 'session' var) if authentication fails</p>
|
<p>@deprecated This option should be set directly on the LegacySessionAuth.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -379,59 +371,7 @@
|
||||||
<p> </p>
|
<p> </p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>Whatsapp session to restore. If not set, will start a new session</p>
|
<p>@deprecated Only here for backwards-compatibility. You should move to using LocalAuth, or set the authStrategy to LegacySessionAuth explicitly.</p>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>session.WABrowserId</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>session.WASecretBundle</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>session.WAToken1</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>session.WAToken2</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -530,7 +470,6 @@
|
||||||
<dd><a href="Client.html#event:group_update">Client#event:group_update</a></dd>
|
<dd><a href="Client.html#event:group_update">Client#event:group_update</a></dd>
|
||||||
<dd><a href="Client.html#event:disconnected">Client#event:disconnected</a></dd>
|
<dd><a href="Client.html#event:disconnected">Client#event:disconnected</a></dd>
|
||||||
<dd><a href="Client.html#event:change_state">Client#event:change_state</a></dd>
|
<dd><a href="Client.html#event:change_state">Client#event:change_state</a></dd>
|
||||||
<dd><a href="Client.html#event:change_battery">Client#event:change_battery</a></dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
|
|
@ -545,7 +484,7 @@
|
||||||
<h2>Methods</h2>
|
<h2>Methods</h2>
|
||||||
<section>
|
<section>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="acceptGroupV4Invite"><span class="symbol-name">acceptGroupV4Invite</span><span class="signature"><span class="signature-params">(inviteV4)</span> → <span class="signature-returns"> Promise containing Object</span></span></h3>
|
<h3 id="acceptGroupV4Invite"><span class="symbol-name">acceptGroupV4Invite</span><span class="signature"><span class="signature-params">(inviteInfo)</span> → <span class="signature-returns"> Promise containing Object</span></span></h3>
|
||||||
<p>Accepts a private invitation to join a group</p>
|
<p>Accepts a private invitation to join a group</p>
|
||||||
<section>
|
<section>
|
||||||
<h4>Parameter</h4>
|
<h4>Parameter</h4>
|
||||||
|
|
@ -561,7 +500,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>inviteV4</p>
|
<p>inviteInfo</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>object</p>
|
<p>object</p>
|
||||||
|
|
@ -830,6 +769,44 @@
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="getCommonGroups"><span class="symbol-name">getCommonGroups</span><span class="signature"><span class="signature-params">(contactId)</span> → <span class="signature-returns"> Promise containing Array of WAWebJS.ChatId</span></span></h3>
|
||||||
|
<p>Gets the Contact's common groups with you. Returns empty array if you don't have any common group.</p>
|
||||||
|
<section>
|
||||||
|
<h4>Parameter</h4>
|
||||||
|
<table class="jsdoc-details-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Optional</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>contactId</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>the whatsapp user's ID (_serialized format)</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing Array of WAWebJS.ChatId</code> </p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="getContactById"><span class="symbol-name">getContactById</span><span class="signature"><span class="signature-params">(contactId)</span> → <span class="signature-returns"> Promise containing <a href="Contact.html">Contact</a></span></span></h3>
|
<h3 id="getContactById"><span class="symbol-name">getContactById</span><span class="signature"><span class="signature-params">(contactId)</span> → <span class="signature-returns"> Promise containing <a href="Contact.html">Contact</a></span></span></h3>
|
||||||
<p>Get contact instance by ID</p>
|
<p>Get contact instance by ID</p>
|
||||||
<section>
|
<section>
|
||||||
|
|
@ -1452,6 +1429,11 @@
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="sendPresenceUnavailable"><span class="symbol-name">sendPresenceUnavailable</span><span class="signature"><span class="signature-params">()</span></span></h3>
|
||||||
|
<p>Marks the client as unavailable</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="sendSeen"><span class="symbol-name">sendSeen</span><span class="signature"><span class="signature-params">(chatId)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
<h3 id="sendSeen"><span class="symbol-name">sendSeen</span><span class="signature"><span class="signature-params">(chatId)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
<p>Mark as seen for the Chat</p>
|
<p>Mark as seen for the Chat</p>
|
||||||
<section>
|
<section>
|
||||||
|
|
@ -1491,7 +1473,7 @@
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="setDisplayName"><span class="symbol-name">setDisplayName</span><span class="signature"><span class="signature-params">(displayName)</span></span></h3>
|
<h3 id="setDisplayName"><span class="symbol-name">setDisplayName</span><span class="signature"><span class="signature-params">(displayName)</span> → <span class="signature-returns"> Promise containing Boolean</span></span></h3>
|
||||||
<p>Sets the current user's display name.
|
<p>Sets the current user's display name.
|
||||||
This is the name shown to WhatsApp users that have not added you as a contact beside your number in groups and in your profile.</p>
|
This is the name shown to WhatsApp users that have not added you as a contact beside your number in groups and in your profile.</p>
|
||||||
<section>
|
<section>
|
||||||
|
|
@ -1524,6 +1506,10 @@
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing Boolean</code> </p>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="setStatus"><span class="symbol-name">setStatus</span><span class="signature"><span class="signature-params">(status)</span></span></h3>
|
<h3 id="setStatus"><span class="symbol-name">setStatus</span><span class="signature"><span class="signature-params">(status)</span></span></h3>
|
||||||
|
|
@ -1650,104 +1636,10 @@
|
||||||
</dl>
|
</dl>
|
||||||
<h3 id="event:authenticated"><span class="symbol-name">authenticated</span></h3>
|
<h3 id="event:authenticated"><span class="symbol-name">authenticated</span></h3>
|
||||||
<p>Emitted when authentication is successful</p>
|
<p>Emitted when authentication is successful</p>
|
||||||
<section>
|
|
||||||
<h4>Parameters</h4>
|
|
||||||
<table class="jsdoc-details-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Type</th>
|
|
||||||
<th>Optional</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>session</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p>object</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p>Object containing session information. Can be used to restore the session.</p>
|
|
||||||
<p>Values in <code>session</code> have the following properties:</p>
|
|
||||||
<table class="jsdoc-details-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Type</th>
|
|
||||||
<th>Optional</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>WABrowserId</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p>string</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>WASecretBundle</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p>string</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>WAToken1</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p>string</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<p>WAToken2</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p>string</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<p> </p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</section>
|
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
</dl>
|
</dl>
|
||||||
<h3 id="event:change_battery"><span class="symbol-name">change_battery</span></h3>
|
<h3 id="event:change_battery"><span class="symbol-name">change_battery</span></h3>
|
||||||
<p>Emitted when the battery percentage for the attached device changes</p>
|
<p>Emitted when the battery percentage for the attached device changes. Will not be sent if using multi-device.</p>
|
||||||
<section>
|
<section>
|
||||||
<h4>Parameters</h4>
|
<h4>Parameters</h4>
|
||||||
<table class="jsdoc-details-table">
|
<table class="jsdoc-details-table">
|
||||||
|
|
@ -1818,6 +1710,8 @@
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
|
<dt>Deprecated</dt>
|
||||||
|
<dd></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<h3 id="event:change_state"><span class="symbol-name">change_state</span></h3>
|
<h3 id="event:change_state"><span class="symbol-name">change_state</span></h3>
|
||||||
<p>Emitted when the connection state changes</p>
|
<p>Emitted when the connection state changes</p>
|
||||||
|
|
@ -2370,7 +2264,7 @@
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
</dl>
|
</dl>
|
||||||
<h3 id="event:qr"><span class="symbol-name">qr</span></h3>
|
<h3 id="event:qr"><span class="symbol-name">qr</span></h3>
|
||||||
<p>Emitted when the QR code is received</p>
|
<p>Emitted when a QR code is received</p>
|
||||||
<section>
|
<section>
|
||||||
<h4>Parameter</h4>
|
<h4>Parameter</h4>
|
||||||
<table class="jsdoc-details-table">
|
<table class="jsdoc-details-table">
|
||||||
|
|
@ -2416,7 +2310,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Source: Client.js</title>
|
<title>whatsapp-web.js 1.16.0 » Source: Client.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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -34,7 +34,6 @@
|
||||||
const EventEmitter = require('events');
|
const EventEmitter = require('events');
|
||||||
const puppeteer = require('puppeteer');
|
const puppeteer = require('puppeteer');
|
||||||
const moduleRaid = require('@pedroslopez/moduleraid/moduleraid');
|
const moduleRaid = require('@pedroslopez/moduleraid/moduleraid');
|
||||||
const jsQR = require('jsqr');
|
|
||||||
|
|
||||||
const Util = require('./util/Util');
|
const Util = require('./util/Util');
|
||||||
const InterfaceController = require('./util/InterfaceController');
|
const InterfaceController = require('./util/InterfaceController');
|
||||||
|
|
@ -42,22 +41,20 @@ const { WhatsWebURL, DefaultOptions, Events, WAState } = require('./ut
|
||||||
const { ExposeStore, LoadUtils } = require('./util/Injected');
|
const { ExposeStore, LoadUtils } = require('./util/Injected');
|
||||||
const ChatFactory = require('./factories/ChatFactory');
|
const ChatFactory = require('./factories/ChatFactory');
|
||||||
const ContactFactory = require('./factories/ContactFactory');
|
const ContactFactory = require('./factories/ContactFactory');
|
||||||
const { ClientInfo, Message, MessageMedia, Contact, Location, GroupNotification , Label, Call, Buttons, List} = require('./structures');
|
const { ClientInfo, Message, MessageMedia, Contact, Location, GroupNotification, Label, Call, Buttons, List } = require('./structures');
|
||||||
|
const LegacySessionAuth = require('./authStrategies/LegacySessionAuth');
|
||||||
|
const NoAuth = require('./authStrategies/NoAuth');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starting point for interacting with the WhatsApp Web API
|
* Starting point for interacting with the WhatsApp Web API
|
||||||
* @extends {EventEmitter}
|
* @extends {EventEmitter}
|
||||||
* @param {object} options - Client options
|
* @param {object} options - Client options
|
||||||
|
* @param {AuthStrategy} options.authStrategy - Determines how to save and restore sessions. Will use LegacySessionAuth if options.session is set. Otherwise, NoAuth will be used.
|
||||||
* @param {number} options.authTimeoutMs - Timeout for authentication selector in puppeteer
|
* @param {number} options.authTimeoutMs - Timeout for authentication selector in puppeteer
|
||||||
* @param {object} options.puppeteer - Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/
|
* @param {object} options.puppeteer - Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/
|
||||||
* @param {number} options.qrRefreshIntervalMs - Refresh interval for qr code (how much time to wait before checking if the qr code has changed)
|
|
||||||
* @param {number} options.qrTimeoutMs - Timeout for qr code selector in puppeteer
|
|
||||||
* @param {number} options.qrMaxRetries - How many times should the qrcode be refreshed before giving up
|
* @param {number} options.qrMaxRetries - How many times should the qrcode be refreshed before giving up
|
||||||
* @param {string} options.restartOnAuthFail - Restart client with a new session (i.e. use null 'session' var) if authentication fails
|
* @param {string} options.restartOnAuthFail - @deprecated This option should be set directly on the LegacySessionAuth.
|
||||||
* @param {object} options.session - Whatsapp session to restore. If not set, will start a new session
|
* @param {object} options.session - @deprecated Only here for backwards-compatibility. You should move to using LocalAuth, or set the authStrategy to LegacySessionAuth explicitly.
|
||||||
* @param {string} options.session.WABrowserId
|
|
||||||
* @param {string} options.session.WASecretBundle
|
|
||||||
* @param {string} options.session.WAToken1
|
|
||||||
* @param {string} options.session.WAToken2
|
|
||||||
* @param {number} options.takeoverOnConflict - If another whatsapp web session is detected (another browser), take over the session in the current browser
|
* @param {number} options.takeoverOnConflict - If another whatsapp web session is detected (another browser), take over the session in the current browser
|
||||||
* @param {number} options.takeoverTimeoutMs - How much time to wait before taking over the session
|
* @param {number} options.takeoverTimeoutMs - How much time to wait before taking over the session
|
||||||
* @param {string} options.userAgent - User agent to use in puppeteer
|
* @param {string} options.userAgent - User agent to use in puppeteer
|
||||||
|
|
@ -79,7 +76,6 @@ const { ClientInfo, Message, MessageMedia, Contact, Location, GroupNotification
|
||||||
* @fires Client#group_update
|
* @fires Client#group_update
|
||||||
* @fires Client#disconnected
|
* @fires Client#disconnected
|
||||||
* @fires Client#change_state
|
* @fires Client#change_state
|
||||||
* @fires Client#change_battery
|
|
||||||
*/
|
*/
|
||||||
class Client extends EventEmitter {
|
class Client extends EventEmitter {
|
||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
|
|
@ -87,6 +83,27 @@ class Client extends EventEmitter {
|
||||||
|
|
||||||
this.options = Util.mergeDefault(DefaultOptions, options);
|
this.options = Util.mergeDefault(DefaultOptions, options);
|
||||||
|
|
||||||
|
if(!this.options.authStrategy) {
|
||||||
|
if(Object.prototype.hasOwnProperty.call(this.options, 'session')) {
|
||||||
|
process.emitWarning(
|
||||||
|
'options.session is deprecated and will be removed in a future release due to incompatibility with multi-device. ' +
|
||||||
|
'Use the LocalAuth authStrategy, don\'t pass in a session as an option, or suppress this warning by using the LegacySessionAuth strategy explicitly (see https://wwebjs.dev/guide/authentication.html#legacysessionauth-strategy).',
|
||||||
|
'DeprecationWarning'
|
||||||
|
);
|
||||||
|
|
||||||
|
this.authStrategy = new LegacySessionAuth({
|
||||||
|
session: this.options.session,
|
||||||
|
restartOnAuthFail: this.options.restartOnAuthFail
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.authStrategy = new NoAuth();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.authStrategy = this.options.authStrategy;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.authStrategy.setup(this);
|
||||||
|
|
||||||
this.pupBrowser = null;
|
this.pupBrowser = null;
|
||||||
this.pupPage = null;
|
this.pupPage = null;
|
||||||
|
|
||||||
|
|
@ -99,40 +116,24 @@ class Client extends EventEmitter {
|
||||||
async initialize() {
|
async initialize() {
|
||||||
let [browser, page] = [null, null];
|
let [browser, page] = [null, null];
|
||||||
|
|
||||||
if(this.options.puppeteer &amp;&amp; this.options.puppeteer.browserWSEndpoint) {
|
await this.authStrategy.beforeBrowserInitialized();
|
||||||
browser = await puppeteer.connect(this.options.puppeteer);
|
|
||||||
|
const puppeteerOpts = this.options.puppeteer;
|
||||||
|
if (puppeteerOpts &amp;&amp; puppeteerOpts.browserWSEndpoint) {
|
||||||
|
browser = await puppeteer.connect(puppeteerOpts);
|
||||||
page = await browser.newPage();
|
page = await browser.newPage();
|
||||||
} else {
|
} else {
|
||||||
browser = await puppeteer.launch(this.options.puppeteer);
|
browser = await puppeteer.launch(puppeteerOpts);
|
||||||
page = (await browser.pages())[0];
|
page = (await browser.pages())[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.setUserAgent(this.options.userAgent);
|
await page.setUserAgent(this.options.userAgent);
|
||||||
|
if (this.options.bypassCSP) await page.setBypassCSP(true);
|
||||||
|
|
||||||
this.pupBrowser = browser;
|
this.pupBrowser = browser;
|
||||||
this.pupPage = page;
|
this.pupPage = page;
|
||||||
|
|
||||||
// remember me
|
await this.authStrategy.afterBrowserInitialized();
|
||||||
await page.evaluateOnNewDocument(() => {
|
|
||||||
localStorage.setItem('remember-me', 'true');
|
|
||||||
});
|
|
||||||
|
|
||||||
if (this.options.session) {
|
|
||||||
await page.evaluateOnNewDocument(
|
|
||||||
session => {
|
|
||||||
if(document.referrer === 'https://whatsapp.com/') {
|
|
||||||
localStorage.clear();
|
|
||||||
localStorage.setItem('WABrowserId', session.WABrowserId);
|
|
||||||
localStorage.setItem('WASecretBundle', session.WASecretBundle);
|
|
||||||
localStorage.setItem('WAToken1', session.WAToken1);
|
|
||||||
localStorage.setItem('WAToken2', session.WAToken2);
|
|
||||||
}
|
|
||||||
}, this.options.session);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(this.options.bypassCSP) {
|
|
||||||
await page.setBypassCSP(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
await page.goto(WhatsWebURL, {
|
await page.goto(WhatsWebURL, {
|
||||||
waitUntil: 'load',
|
waitUntil: 'load',
|
||||||
|
|
@ -140,56 +141,54 @@ class Client extends EventEmitter {
|
||||||
referer: 'https://whatsapp.com/'
|
referer: 'https://whatsapp.com/'
|
||||||
});
|
});
|
||||||
|
|
||||||
const KEEP_PHONE_CONNECTED_IMG_SELECTOR = '[data-icon="intro-md-beta-logo-dark"], [data-icon="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]';
|
const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]';
|
||||||
|
const INTRO_QRCODE_SELECTOR = 'div[data-ref] canvas';
|
||||||
|
|
||||||
if (this.options.session) {
|
// Checks which selector appears first
|
||||||
// Check if session restore was successful
|
const needAuthentication = await Promise.race([
|
||||||
try {
|
new Promise(resolve => {
|
||||||
await page.waitForSelector(KEEP_PHONE_CONNECTED_IMG_SELECTOR, { timeout: this.options.authTimeoutMs });
|
page.waitForSelector(INTRO_IMG_SELECTOR, { timeout: this.options.authTimeoutMs })
|
||||||
} catch (err) {
|
.then(() => resolve(false))
|
||||||
if (err.name === 'TimeoutError') {
|
.catch((err) => resolve(err));
|
||||||
/**
|
}),
|
||||||
* Emitted when there has been an error while trying to restore an existing session
|
new Promise(resolve => {
|
||||||
* @event Client#auth_failure
|
page.waitForSelector(INTRO_QRCODE_SELECTOR, { timeout: this.options.authTimeoutMs })
|
||||||
* @param {string} message
|
.then(() => resolve(true))
|
||||||
*/
|
.catch((err) => resolve(err));
|
||||||
this.emit(Events.AUTHENTICATION_FAILURE, 'Unable to log in. Are the session details valid?');
|
})
|
||||||
browser.close();
|
]);
|
||||||
if (this.options.restartOnAuthFail) {
|
|
||||||
// session restore failed so try again but without session to force new authentication
|
// Checks if an error ocurred on the first found selector. The second will be discarded and ignored by .race;
|
||||||
this.options.session = null;
|
if (needAuthentication instanceof Error) throw needAuthentication;
|
||||||
this.initialize();
|
|
||||||
}
|
// Scan-qrcode selector was found. Needs authentication
|
||||||
return;
|
if (needAuthentication) {
|
||||||
|
const { failed, failureEventPayload, restart } = await this.authStrategy.onAuthenticationNeeded();
|
||||||
|
if(failed) {
|
||||||
|
/**
|
||||||
|
* Emitted when there has been an error while trying to restore an existing session
|
||||||
|
* @event Client#auth_failure
|
||||||
|
* @param {string} message
|
||||||
|
*/
|
||||||
|
this.emit(Events.AUTHENTICATION_FAILURE, failureEventPayload);
|
||||||
|
await this.destroy();
|
||||||
|
if (restart) {
|
||||||
|
// session restore failed so try again but without session to force new authentication
|
||||||
|
return this.initialize();
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
throw err;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
const QR_CONTAINER = 'div[data-ref]';
|
||||||
|
const QR_RETRY_BUTTON = 'div[data-ref] > span > button';
|
||||||
let qrRetries = 0;
|
let qrRetries = 0;
|
||||||
|
await page.exposeFunction('qrChanged', async (qr) => {
|
||||||
const getQrCode = async () => {
|
|
||||||
// Check if retry button is present
|
|
||||||
var QR_RETRY_SELECTOR = 'div[data-ref] > span > button';
|
|
||||||
var qrRetry = await page.$(QR_RETRY_SELECTOR);
|
|
||||||
if (qrRetry) {
|
|
||||||
await qrRetry.click();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Wait for QR Code
|
|
||||||
const QR_CANVAS_SELECTOR = 'canvas';
|
|
||||||
await page.waitForSelector(QR_CANVAS_SELECTOR, { timeout: this.options.qrTimeoutMs });
|
|
||||||
const qrImgData = await page.$eval(QR_CANVAS_SELECTOR, canvas => [].slice.call(canvas.getContext('2d').getImageData(0, 0, 264, 264).data));
|
|
||||||
const qr = jsQR(qrImgData, 264, 264).data;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Emitted when the QR code is received
|
* Emitted when a QR code is received
|
||||||
* @event Client#qr
|
* @event Client#qr
|
||||||
* @param {string} qr QR Code
|
* @param {string} qr QR Code
|
||||||
*/
|
*/
|
||||||
this.emit(Events.QR_RECEIVED, qr);
|
this.emit(Events.QR_RECEIVED, qr);
|
||||||
|
|
||||||
if (this.options.qrMaxRetries > 0) {
|
if (this.options.qrMaxRetries > 0) {
|
||||||
qrRetries++;
|
qrRetries++;
|
||||||
if (qrRetries > this.options.qrMaxRetries) {
|
if (qrRetries > this.options.qrMaxRetries) {
|
||||||
|
|
@ -197,15 +196,39 @@ class Client extends EventEmitter {
|
||||||
await this.destroy();
|
await this.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
getQrCode();
|
|
||||||
this._qrRefreshInterval = setInterval(getQrCode, this.options.qrRefreshIntervalMs);
|
await page.evaluate(function (selectors) {
|
||||||
|
const qr_container = document.querySelector(selectors.QR_CONTAINER);
|
||||||
|
window.qrChanged(qr_container.dataset.ref);
|
||||||
|
|
||||||
|
const obs = new MutationObserver((muts) => {
|
||||||
|
muts.forEach(mut => {
|
||||||
|
// Listens to qr token change
|
||||||
|
if (mut.type === 'attributes' &amp;&amp; mut.attributeName === 'data-ref') {
|
||||||
|
window.qrChanged(mut.target.dataset.ref);
|
||||||
|
} else
|
||||||
|
// Listens to retry button, when found, click it
|
||||||
|
if (mut.type === 'childList') {
|
||||||
|
const retry_button = document.querySelector(selectors.QR_RETRY_BUTTON);
|
||||||
|
if (retry_button) retry_button.click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
obs.observe(qr_container.parentElement, {
|
||||||
|
subtree: true,
|
||||||
|
childList: true,
|
||||||
|
attributes: true,
|
||||||
|
attributeFilter: ['data-ref'],
|
||||||
|
});
|
||||||
|
}, {
|
||||||
|
QR_CONTAINER,
|
||||||
|
QR_RETRY_BUTTON
|
||||||
|
});
|
||||||
|
|
||||||
// Wait for code scan
|
// Wait for code scan
|
||||||
try {
|
try {
|
||||||
await page.waitForSelector(KEEP_PHONE_CONNECTED_IMG_SELECTOR, { timeout: 0 });
|
await page.waitForSelector(INTRO_IMG_SELECTOR, { timeout: 0 });
|
||||||
clearInterval(this._qrRefreshInterval);
|
|
||||||
this._qrRefreshInterval = undefined;
|
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
if (
|
if (
|
||||||
error.name === 'ProtocolError' &amp;&amp;
|
error.name === 'ProtocolError' &amp;&amp;
|
||||||
|
|
@ -218,44 +241,29 @@ class Client extends EventEmitter {
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.evaluate(ExposeStore, moduleRaid.toString());
|
await page.evaluate(ExposeStore, moduleRaid.toString());
|
||||||
|
const authEventPayload = await this.authStrategy.getAuthEventPayload();
|
||||||
// Get session tokens
|
|
||||||
const localStorage = JSON.parse(await page.evaluate(() => {
|
|
||||||
return JSON.stringify(window.localStorage);
|
|
||||||
}));
|
|
||||||
|
|
||||||
const session = {
|
|
||||||
WABrowserId: localStorage.WABrowserId,
|
|
||||||
WASecretBundle: localStorage.WASecretBundle,
|
|
||||||
WAToken1: localStorage.WAToken1,
|
|
||||||
WAToken2: localStorage.WAToken2
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Emitted when authentication is successful
|
* Emitted when authentication is successful
|
||||||
* @event Client#authenticated
|
* @event Client#authenticated
|
||||||
* @param {object} session Object containing session information. Can be used to restore the session.
|
|
||||||
* @param {string} session.WABrowserId
|
|
||||||
* @param {string} session.WASecretBundle
|
|
||||||
* @param {string} session.WAToken1
|
|
||||||
* @param {string} session.WAToken2
|
|
||||||
*/
|
*/
|
||||||
this.emit(Events.AUTHENTICATED, session);
|
this.emit(Events.AUTHENTICATED, authEventPayload);
|
||||||
|
|
||||||
// Check window.Store Injection
|
// Check window.Store Injection
|
||||||
await page.waitForFunction('window.Store != undefined');
|
await page.waitForFunction('window.Store != undefined');
|
||||||
|
|
||||||
const isMD = await page.evaluate(() => {
|
await page.evaluate(async () => {
|
||||||
return window.Store.Features.features.MD_BACKEND;
|
// safely unregister service workers
|
||||||
|
const registrations = await navigator.serviceWorker.getRegistrations();
|
||||||
|
for (let registration of registrations) {
|
||||||
|
registration.unregister();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(isMD) {
|
|
||||||
throw new Error('Multi-device is not yet supported by whatsapp-web.js. Please check out https://github.com/pedroslopez/whatsapp-web.js/pull/889 to follow the progress.');
|
|
||||||
}
|
|
||||||
|
|
||||||
//Load util functions (serializers, helper functions)
|
//Load util functions (serializers, helper functions)
|
||||||
await page.evaluate(LoadUtils);
|
await page.evaluate(LoadUtils);
|
||||||
|
|
||||||
|
|
@ -265,7 +273,7 @@ class Client extends EventEmitter {
|
||||||
* @type {ClientInfo}
|
* @type {ClientInfo}
|
||||||
*/
|
*/
|
||||||
this.info = new ClientInfo(this, await page.evaluate(() => {
|
this.info = new ClientInfo(this, await page.evaluate(() => {
|
||||||
return window.Store.Conn.serialize();
|
return { ...window.Store.Conn.serialize(), wid: window.Store.User.getMeUser() };
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Add InterfaceController
|
// Add InterfaceController
|
||||||
|
|
@ -429,11 +437,12 @@ class Client extends EventEmitter {
|
||||||
if (battery === undefined) return;
|
if (battery === undefined) return;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Emitted when the battery percentage for the attached device changes
|
* Emitted when the battery percentage for the attached device changes. Will not be sent if using multi-device.
|
||||||
* @event Client#change_battery
|
* @event Client#change_battery
|
||||||
* @param {object} batteryInfo
|
* @param {object} batteryInfo
|
||||||
* @param {number} batteryInfo.battery - The current battery percentage
|
* @param {number} batteryInfo.battery - The current battery percentage
|
||||||
* @param {boolean} batteryInfo.plugged - Indicates if the phone is plugged in (true) or not (false)
|
* @param {boolean} batteryInfo.plugged - Indicates if the phone is plugged in (true) or not (false)
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
this.emit(Events.BATTERY_CHANGED, { battery, plugged });
|
this.emit(Events.BATTERY_CHANGED, { battery, plugged });
|
||||||
});
|
});
|
||||||
|
|
@ -452,14 +461,14 @@ class Client extends EventEmitter {
|
||||||
* @param {boolean} call.webClientShouldHandle - If Waweb should handle
|
* @param {boolean} call.webClientShouldHandle - If Waweb should handle
|
||||||
* @param {object} call.participants - Participants
|
* @param {object} call.participants - Participants
|
||||||
*/
|
*/
|
||||||
const cll = new Call(this,call);
|
const cll = new Call(this, call);
|
||||||
this.emit(Events.INCOMING_CALL, cll);
|
this.emit(Events.INCOMING_CALL, cll);
|
||||||
});
|
});
|
||||||
|
|
||||||
await page.evaluate(() => {
|
await page.evaluate(() => {
|
||||||
window.Store.Msg.on('change', (msg) => { window.onChangeMessageEvent(window.WWebJS.getMessageModel(msg)); });
|
window.Store.Msg.on('change', (msg) => { window.onChangeMessageEvent(window.WWebJS.getMessageModel(msg)); });
|
||||||
window.Store.Msg.on('change:type', (msg) => { window.onChangeMessageTypeEvent(window.WWebJS.getMessageModel(msg)); });
|
window.Store.Msg.on('change:type', (msg) => { window.onChangeMessageTypeEvent(window.WWebJS.getMessageModel(msg)); });
|
||||||
window.Store.Msg.on('change:ack', (msg,ack) => { window.onMessageAckEvent(window.WWebJS.getMessageModel(msg), ack); });
|
window.Store.Msg.on('change:ack', (msg, ack) => { window.onMessageAckEvent(window.WWebJS.getMessageModel(msg), ack); });
|
||||||
window.Store.Msg.on('change:isUnsentMedia', (msg, unsent) => { if (msg.id.fromMe &amp;&amp; !unsent) window.onMessageMediaUploadedEvent(window.WWebJS.getMessageModel(msg)); });
|
window.Store.Msg.on('change:isUnsentMedia', (msg, unsent) => { if (msg.id.fromMe &amp;&amp; !unsent) window.onMessageMediaUploadedEvent(window.WWebJS.getMessageModel(msg)); });
|
||||||
window.Store.Msg.on('remove', (msg) => { if (msg.isNewMsg) window.onRemoveMessageEvent(window.WWebJS.getMessageModel(msg)); });
|
window.Store.Msg.on('remove', (msg) => { if (msg.isNewMsg) window.onRemoveMessageEvent(window.WWebJS.getMessageModel(msg)); });
|
||||||
window.Store.AppState.on('change:state', (_AppState, state) => { window.onAppStateChangedEvent(state); });
|
window.Store.AppState.on('change:state', (_AppState, state) => { window.onAppStateChangedEvent(state); });
|
||||||
|
|
@ -497,9 +506,6 @@ class Client extends EventEmitter {
|
||||||
* Closes the client
|
* Closes the client
|
||||||
*/
|
*/
|
||||||
async destroy() {
|
async destroy() {
|
||||||
if (this._qrRefreshInterval) {
|
|
||||||
clearInterval(this._qrRefreshInterval);
|
|
||||||
}
|
|
||||||
await this.pupBrowser.close();
|
await this.pupBrowser.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -507,9 +513,11 @@ class Client extends EventEmitter {
|
||||||
* Logs out the client, closing the current session
|
* Logs out the client, closing the current session
|
||||||
*/
|
*/
|
||||||
async logout() {
|
async logout() {
|
||||||
return await this.pupPage.evaluate(() => {
|
await this.pupPage.evaluate(() => {
|
||||||
return window.Store.AppState.logout();
|
return window.Store.AppState.logout();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await this.authStrategy.logout();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -539,7 +547,7 @@ class Client extends EventEmitter {
|
||||||
/**
|
/**
|
||||||
* Message options.
|
* Message options.
|
||||||
* @typedef {Object} MessageSendOptions
|
* @typedef {Object} MessageSendOptions
|
||||||
* @property {boolean} [linkPreview=true] - Show links preview
|
* @property {boolean} [linkPreview=true] - Show links preview. Has no effect on multi-device accounts.
|
||||||
* @property {boolean} [sendAudioAsVoice=false] - Send audio as voice message
|
* @property {boolean} [sendAudioAsVoice=false] - Send audio as voice message
|
||||||
* @property {boolean} [sendVideoAsGif=false] - Send video as gif
|
* @property {boolean} [sendVideoAsGif=false] - Send video as gif
|
||||||
* @property {boolean} [sendMediaAsSticker=false] - Send media as a sticker
|
* @property {boolean} [sendMediaAsSticker=false] - Send media as a sticker
|
||||||
|
|
@ -589,34 +597,36 @@ class Client extends EventEmitter {
|
||||||
} else if (content instanceof Location) {
|
} else if (content instanceof Location) {
|
||||||
internalOptions.location = content;
|
internalOptions.location = content;
|
||||||
content = '';
|
content = '';
|
||||||
} else if(content instanceof Contact) {
|
} else if (content instanceof Contact) {
|
||||||
internalOptions.contactCard = content.id._serialized;
|
internalOptions.contactCard = content.id._serialized;
|
||||||
content = '';
|
content = '';
|
||||||
} else if(Array.isArray(content) &amp;&amp; content.length > 0 &amp;&amp; content[0] instanceof Contact) {
|
} else if (Array.isArray(content) &amp;&amp; content.length > 0 &amp;&amp; content[0] instanceof Contact) {
|
||||||
internalOptions.contactCardList = content.map(contact => contact.id._serialized);
|
internalOptions.contactCardList = content.map(contact => contact.id._serialized);
|
||||||
content = '';
|
content = '';
|
||||||
} else if(content instanceof Buttons){
|
} else if (content instanceof Buttons) {
|
||||||
if(content.type !== 'chat'){internalOptions.attachment = content.body;}
|
if (content.type !== 'chat') { internalOptions.attachment = content.body; }
|
||||||
internalOptions.buttons = content;
|
internalOptions.buttons = content;
|
||||||
content = '';
|
content = '';
|
||||||
} else if(content instanceof List){
|
} else if (content instanceof List) {
|
||||||
internalOptions.list = content;
|
internalOptions.list = content;
|
||||||
content = '';
|
content = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (internalOptions.sendMediaAsSticker &amp;&amp; internalOptions.attachment) {
|
if (internalOptions.sendMediaAsSticker &amp;&amp; internalOptions.attachment) {
|
||||||
internalOptions.attachment =
|
internalOptions.attachment = await Util.formatToWebpSticker(
|
||||||
await Util.formatToWebpSticker(internalOptions.attachment, {
|
internalOptions.attachment, {
|
||||||
name: options.stickerName,
|
name: options.stickerName,
|
||||||
author: options.stickerAuthor,
|
author: options.stickerAuthor,
|
||||||
categories: options.stickerCategories
|
categories: options.stickerCategories
|
||||||
});
|
}, this.pupPage
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const newMessage = await this.pupPage.evaluate(async (chatId, message, options, sendSeen) => {
|
const newMessage = await this.pupPage.evaluate(async (chatId, message, options, sendSeen) => {
|
||||||
const chatWid = window.Store.WidFactory.createWid(chatId);
|
const chatWid = window.Store.WidFactory.createWid(chatId);
|
||||||
const chat = await window.Store.Chat.find(chatWid);
|
const chat = await window.Store.Chat.find(chatWid);
|
||||||
|
|
||||||
|
|
||||||
if (sendSeen) {
|
if (sendSeen) {
|
||||||
window.WWebJS.sendSeen(chatId);
|
window.WWebJS.sendSeen(chatId);
|
||||||
}
|
}
|
||||||
|
|
@ -703,7 +713,7 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async getInviteInfo(inviteCode) {
|
async getInviteInfo(inviteCode) {
|
||||||
return await this.pupPage.evaluate(inviteCode => {
|
return await this.pupPage.evaluate(inviteCode => {
|
||||||
return window.Store.Wap.groupInviteInfo(inviteCode);
|
return window.Store.InviteInfo.sendQueryGroupInvite(inviteCode);
|
||||||
}, inviteCode);
|
}, inviteCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -722,15 +732,15 @@ class Client extends EventEmitter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Accepts a private invitation to join a group
|
* Accepts a private invitation to join a group
|
||||||
* @param {object} inviteV4 Invite V4 Info
|
* @param {object} inviteInfo Invite V4 Info
|
||||||
* @returns {Promise&lt;Object>}
|
* @returns {Promise&lt;Object>}
|
||||||
*/
|
*/
|
||||||
async acceptGroupV4Invite(inviteInfo) {
|
async acceptGroupV4Invite(inviteInfo) {
|
||||||
if(!inviteInfo.inviteCode) throw 'Invalid invite code, try passing the message.inviteV4 object';
|
if (!inviteInfo.inviteCode) throw 'Invalid invite code, try passing the message.inviteV4 object';
|
||||||
if (inviteInfo.inviteCodeExp == 0) throw 'Expired invite code';
|
if (inviteInfo.inviteCodeExp == 0) throw 'Expired invite code';
|
||||||
return await this.pupPage.evaluate(async inviteInfo => {
|
return this.pupPage.evaluate(async inviteInfo => {
|
||||||
let { groupId, fromId, inviteCode, inviteCodeExp, toId } = inviteInfo;
|
let { groupId, fromId, inviteCode, inviteCodeExp } = inviteInfo;
|
||||||
return await window.Store.Wap.acceptGroupV4Invite(groupId, fromId, inviteCode, String(inviteCodeExp), toId);
|
return await window.Store.JoinInviteV4.sendJoinGroupViaInviteV4(inviteCode, String(inviteCodeExp), groupId, fromId);
|
||||||
}, inviteInfo);
|
}, inviteInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -740,7 +750,7 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async setStatus(status) {
|
async setStatus(status) {
|
||||||
await this.pupPage.evaluate(async status => {
|
await this.pupPage.evaluate(async status => {
|
||||||
return await window.Store.Wap.sendSetStatus(status);
|
return await window.Store.StatusUtils.setMyStatus(status);
|
||||||
}, status);
|
}, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -748,11 +758,22 @@ class Client extends EventEmitter {
|
||||||
* Sets the current user's display name.
|
* Sets the current user's display name.
|
||||||
* This is the name shown to WhatsApp users that have not added you as a contact beside your number in groups and in your profile.
|
* This is the name shown to WhatsApp users that have not added you as a contact beside your number in groups and in your profile.
|
||||||
* @param {string} displayName New display name
|
* @param {string} displayName New display name
|
||||||
|
* @returns {Promise&lt;Boolean>}
|
||||||
*/
|
*/
|
||||||
async setDisplayName(displayName) {
|
async setDisplayName(displayName) {
|
||||||
await this.pupPage.evaluate(async displayName => {
|
const couldSet = await this.pupPage.evaluate(async displayName => {
|
||||||
return await window.Store.Wap.setPushname(displayName);
|
if(!window.Store.Conn.canSetMyPushname()) return false;
|
||||||
|
|
||||||
|
if(window.Store.Features.features.MD_BACKEND) {
|
||||||
|
// TODO
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
const res = await window.Store.Wap.setPushname(displayName);
|
||||||
|
return !res.status || res.status === 200;
|
||||||
|
}
|
||||||
}, displayName);
|
}, displayName);
|
||||||
|
|
||||||
|
return couldSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -771,7 +792,16 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async sendPresenceAvailable() {
|
async sendPresenceAvailable() {
|
||||||
return await this.pupPage.evaluate(() => {
|
return await this.pupPage.evaluate(() => {
|
||||||
return window.Store.Wap.sendPresenceAvailable();
|
return window.Store.PresenceUtils.sendPresenceAvailable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Marks the client as unavailable
|
||||||
|
*/
|
||||||
|
async sendPresenceUnavailable() {
|
||||||
|
return await this.pupPage.evaluate(() => {
|
||||||
|
return window.Store.PresenceUtils.sendPresenceUnavailable();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -878,12 +908,37 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async getProfilePicUrl(contactId) {
|
async getProfilePicUrl(contactId) {
|
||||||
const profilePic = await this.pupPage.evaluate((contactId) => {
|
const profilePic = await this.pupPage.evaluate((contactId) => {
|
||||||
return window.Store.Wap.profilePicFind(contactId);
|
const chatWid = window.Store.WidFactory.createWid(contactId);
|
||||||
|
return window.Store.getProfilePicFull(chatWid);
|
||||||
}, contactId);
|
}, contactId);
|
||||||
|
|
||||||
return profilePic ? profilePic.eurl : undefined;
|
return profilePic ? profilePic.eurl : undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the Contact's common groups with you. Returns empty array if you don't have any common group.
|
||||||
|
* @param {string} contactId the whatsapp user's ID (_serialized format)
|
||||||
|
* @returns {Promise&lt;WAWebJS.ChatId[]>}
|
||||||
|
*/
|
||||||
|
async getCommonGroups(contactId) {
|
||||||
|
const commonGroups = await this.pupPage.evaluate(async (contactId) => {
|
||||||
|
const contact = window.Store.Contact.get(contactId);
|
||||||
|
if (contact.commonGroups) {
|
||||||
|
return contact.commonGroups.serialize();
|
||||||
|
}
|
||||||
|
const status = await window.Store.findCommonGroups(contact);
|
||||||
|
if (status) {
|
||||||
|
return contact.commonGroups.serialize();
|
||||||
|
}
|
||||||
|
return [];
|
||||||
|
}, contactId);
|
||||||
|
const chats = [];
|
||||||
|
for (const group of commonGroups) {
|
||||||
|
chats.push(group.id);
|
||||||
|
}
|
||||||
|
return chats;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Force reset of connection state for the client
|
* Force reset of connection state for the client
|
||||||
*/
|
*/
|
||||||
|
|
@ -899,10 +954,7 @@ class Client extends EventEmitter {
|
||||||
* @returns {Promise&lt;Boolean>}
|
* @returns {Promise&lt;Boolean>}
|
||||||
*/
|
*/
|
||||||
async isRegisteredUser(id) {
|
async isRegisteredUser(id) {
|
||||||
return await this.pupPage.evaluate(async (id) => {
|
return Boolean(await this.getNumberId(id));
|
||||||
let result = await window.Store.Wap.queryExist(id);
|
|
||||||
return result.jid !== undefined;
|
|
||||||
}, id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -912,14 +964,15 @@ class Client extends EventEmitter {
|
||||||
* @returns {Promise&lt;Object|null>}
|
* @returns {Promise&lt;Object|null>}
|
||||||
*/
|
*/
|
||||||
async getNumberId(number) {
|
async getNumberId(number) {
|
||||||
if (!number.endsWith('@c.us')) number += '@c.us';
|
if (!number.endsWith('@c.us')) {
|
||||||
try {
|
number += '@c.us';
|
||||||
return await this.pupPage.evaluate(async numberId => {
|
|
||||||
return window.WWebJS.getNumberId(numberId);
|
|
||||||
}, number);
|
|
||||||
} catch(_) {
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return await this.pupPage.evaluate(async number => {
|
||||||
|
const result = await window.Store.QueryExist(number);
|
||||||
|
if (!result || result.wid === undefined) return null;
|
||||||
|
return result.wid;
|
||||||
|
}, number);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -928,8 +981,8 @@ class Client extends EventEmitter {
|
||||||
* @returns {Promise&lt;string>}
|
* @returns {Promise&lt;string>}
|
||||||
*/
|
*/
|
||||||
async getFormattedNumber(number) {
|
async getFormattedNumber(number) {
|
||||||
if(!number.endsWith('@s.whatsapp.net')) number = number.replace('c.us', 's.whatsapp.net');
|
if (!number.endsWith('@s.whatsapp.net')) number = number.replace('c.us', 's.whatsapp.net');
|
||||||
if(!number.includes('@s.whatsapp.net')) number = `${number}@s.whatsapp.net`;
|
if (!number.includes('@s.whatsapp.net')) number = `${number}@s.whatsapp.net`;
|
||||||
|
|
||||||
return await this.pupPage.evaluate(async numberId => {
|
return await this.pupPage.evaluate(async numberId => {
|
||||||
return window.Store.NumberInfo.formattedPhoneNumber(numberId);
|
return window.Store.NumberInfo.formattedPhoneNumber(numberId);
|
||||||
|
|
@ -967,12 +1020,9 @@ class Client extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
const createRes = await this.pupPage.evaluate(async (name, participantIds) => {
|
const createRes = await this.pupPage.evaluate(async (name, participantIds) => {
|
||||||
const res = await window.Store.Wap.createGroup(name, participantIds);
|
const participantWIDs = participantIds.map(p => window.Store.WidFactory.createWid(p));
|
||||||
console.log(res);
|
const id = window.Store.genId();
|
||||||
if (!res.status === 200) {
|
const res = await window.Store.GroupUtils.sendCreateGroup(name, participantWIDs, undefined, id);
|
||||||
throw 'An error occurred while creating the group!';
|
|
||||||
}
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}, name, participants);
|
}, name, participants);
|
||||||
|
|
||||||
|
|
@ -995,7 +1045,7 @@ class Client extends EventEmitter {
|
||||||
return window.WWebJS.getLabels();
|
return window.WWebJS.getLabels();
|
||||||
});
|
});
|
||||||
|
|
||||||
return labels.map(data => new Label(this , data));
|
return labels.map(data => new Label(this, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1016,7 +1066,7 @@ class Client extends EventEmitter {
|
||||||
* @param {string} chatId
|
* @param {string} chatId
|
||||||
* @returns {Promise&lt;Array&lt;Label>>}
|
* @returns {Promise&lt;Array&lt;Label>>}
|
||||||
*/
|
*/
|
||||||
async getChatLabels(chatId){
|
async getChatLabels(chatId) {
|
||||||
const labels = await this.pupPage.evaluate(async (chatId) => {
|
const labels = await this.pupPage.evaluate(async (chatId) => {
|
||||||
return window.WWebJS.getChatLabels(chatId);
|
return window.WWebJS.getChatLabels(chatId);
|
||||||
}, chatId);
|
}, chatId);
|
||||||
|
|
@ -1029,16 +1079,16 @@ class Client extends EventEmitter {
|
||||||
* @param {string} labelId
|
* @param {string} labelId
|
||||||
* @returns {Promise&lt;Array&lt;Chat>>}
|
* @returns {Promise&lt;Array&lt;Chat>>}
|
||||||
*/
|
*/
|
||||||
async getChatsByLabelId(labelId){
|
async getChatsByLabelId(labelId) {
|
||||||
const chatIds = await this.pupPage.evaluate(async (labelId) => {
|
const chatIds = await this.pupPage.evaluate(async (labelId) => {
|
||||||
const label = window.Store.Label.get(labelId);
|
const label = window.Store.Label.get(labelId);
|
||||||
const labelItems = label.labelItemCollection.models;
|
const labelItems = label.labelItemCollection.models;
|
||||||
return labelItems.reduce((result, item) => {
|
return labelItems.reduce((result, item) => {
|
||||||
if(item.parentType === 'Chat'){
|
if (item.parentType === 'Chat') {
|
||||||
result.push(item.parentId);
|
result.push(item.parentId);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
},[]);
|
}, []);
|
||||||
}, labelId);
|
}, labelId);
|
||||||
|
|
||||||
return Promise.all(chatIds.map(id => this.getChatById(id)));
|
return Promise.all(chatIds.map(id => this.getChatById(id)));
|
||||||
|
|
@ -1069,7 +1119,7 @@ module.exports = Client;
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: ClientInfo</title>
|
<title>whatsapp-web.js 1.16.0 » Class: ClientInfo</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -39,31 +39,26 @@
|
||||||
<div class="summary-content">
|
<div class="summary-content">
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
<dt><a href="ClientInfo.html#me">me</a></dt>
|
|
||||||
<dd>
|
|
||||||
</dd>
|
|
||||||
<dt><a href="ClientInfo.html#phone">phone</a></dt>
|
<dt><a href="ClientInfo.html#phone">phone</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
<div class="summary-column">
|
|
||||||
<dl class="dl-summary-callout">
|
|
||||||
<dt><a href="ClientInfo.html#platform">platform</a></dt>
|
<dt><a href="ClientInfo.html#platform">platform</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="ClientInfo.html#pushname">pushname</a></dt>
|
|
||||||
<dd>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="ClientInfo.html#pushname">pushname</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="ClientInfo.html#wid">wid</a></dt>
|
<dt><a href="ClientInfo.html#wid">wid</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="summary-column">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-callout">
|
<div class="summary-callout">
|
||||||
|
|
@ -93,15 +88,9 @@
|
||||||
<section>
|
<section>
|
||||||
<h2>Properties</h2>
|
<h2>Properties</h2>
|
||||||
<section>
|
<section>
|
||||||
<h3 id="me"><span class="symbol-name">me</span><small class="property-type">
|
|
||||||
object</small></h3>
|
|
||||||
<dl class="dl-compact">
|
|
||||||
<dt>Deprecated</dt>
|
|
||||||
<dd>Use .wid instead</dd>
|
|
||||||
</dl>
|
|
||||||
<h3 id="phone"><span class="symbol-name">phone</span><small class="property-type">
|
<h3 id="phone"><span class="symbol-name">phone</span><small class="property-type">
|
||||||
object</small></h3>
|
object</small></h3>
|
||||||
<p>Information about the phone this client is connected to</p>
|
<p>Information about the phone this client is connected to. Not available in multi-device.</p>
|
||||||
<section>
|
<section>
|
||||||
<h4>Properties</h4>
|
<h4>Properties</h4>
|
||||||
<table class="jsdoc-details-table">
|
<table class="jsdoc-details-table">
|
||||||
|
|
@ -188,10 +177,12 @@
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
|
<dt>Deprecated</dt>
|
||||||
|
<dd></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<h3 id="platform"><span class="symbol-name">platform</span><small class="property-type">
|
<h3 id="platform"><span class="symbol-name">platform</span><small class="property-type">
|
||||||
string</small></h3>
|
string</small></h3>
|
||||||
<p>Platform the phone is running on</p>
|
<p>Platform WhatsApp is running on</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
</dl>
|
</dl>
|
||||||
<h3 id="pushname"><span class="symbol-name">pushname</span><small class="property-type">
|
<h3 id="pushname"><span class="symbol-name">pushname</span><small class="property-type">
|
||||||
|
|
@ -211,6 +202,8 @@
|
||||||
<h3 id="getBatteryStatus"><span class="symbol-name">getBatteryStatus</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> (object, number, or boolean)</span></span></h3>
|
<h3 id="getBatteryStatus"><span class="symbol-name">getBatteryStatus</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> (object, number, or boolean)</span></span></h3>
|
||||||
<p>Get current battery percentage and charging status for the attached device</p>
|
<p>Get current battery percentage and charging status for the attached device</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
|
<dt>Deprecated</dt>
|
||||||
|
<dd></dd>
|
||||||
<dt>Returns</dt>
|
<dt>Returns</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><code>object</code>
|
<p><code>object</code>
|
||||||
|
|
@ -238,7 +231,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Contact</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Contact</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -108,19 +108,22 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Contact.html#getCommonGroups">getCommonGroups()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Contact.html#getCountryCode">getCountryCode()</a></dt>
|
<dt><a href="Contact.html#getCountryCode">getCountryCode()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="Contact.html#getFormattedNumber">getFormattedNumber()</a></dt>
|
<dt><a href="Contact.html#getFormattedNumber">getFormattedNumber()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="Contact.html#getProfilePicUrl">getProfilePicUrl()</a></dt>
|
|
||||||
<dd>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Contact.html#getProfilePicUrl">getProfilePicUrl()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Contact.html#unblock">unblock()</a></dt>
|
<dt><a href="Contact.html#unblock">unblock()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -236,6 +239,15 @@
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="getCommonGroups"><span class="symbol-name">getCommonGroups</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing Array of WAWebJS.ChatId</span></span></h3>
|
||||||
|
<p>Gets the Contact's common groups with you. Returns empty array if you don't have any common group.</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing Array of WAWebJS.ChatId</code> </p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="getCountryCode"><span class="symbol-name">getCountryCode</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing string</span></span></h3>
|
<h3 id="getCountryCode"><span class="symbol-name">getCountryCode</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing string</span></span></h3>
|
||||||
<p>Returns the contact's countrycode, (1541859685@c.us) => (1)</p>
|
<p>Returns the contact's countrycode, (1541859685@c.us) => (1)</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
|
|
@ -281,7 +293,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: GroupChat</title>
|
<title>whatsapp-web.js 1.16.0 » Class: GroupChat</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -645,12 +645,14 @@
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="revokeInvite"><span class="symbol-name">revokeInvite</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise</span></span></h3>
|
<h3 id="revokeInvite"><span class="symbol-name">revokeInvite</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing string</span></span></h3>
|
||||||
<p>Invalidates the current group invite code and generates a new one</p>
|
<p>Invalidates the current group invite code and generates a new one</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
<dt>Returns</dt>
|
<dt>Returns</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><code>Promise</code> </p>
|
<p><code>Promise containing string</code>
|
||||||
|
<p>New invite code</p>
|
||||||
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
|
@ -731,7 +733,7 @@
|
||||||
<dd><a href="Chat.html#sendStateTyping">Chat#sendStateTyping</a></dd>
|
<dd><a href="Chat.html#sendStateTyping">Chat#sendStateTyping</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="setDescription"><span class="symbol-name">setDescription</span><span class="signature"><span class="signature-params">(description)</span> → <span class="signature-returns"> Promise</span></span></h3>
|
<h3 id="setDescription"><span class="symbol-name">setDescription</span><span class="signature"><span class="signature-params">(description)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
<p>Updates the group description</p>
|
<p>Updates the group description</p>
|
||||||
<section>
|
<section>
|
||||||
<h4>Parameter</h4>
|
<h4>Parameter</h4>
|
||||||
|
|
@ -764,7 +766,9 @@
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
<dt>Returns</dt>
|
<dt>Returns</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><code>Promise</code> </p>
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the description was properly updated. This can return false if the user does not have the necessary permissions.</p>
|
||||||
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
|
@ -850,7 +854,7 @@
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="setSubject"><span class="symbol-name">setSubject</span><span class="signature"><span class="signature-params">(subject)</span> → <span class="signature-returns"> Promise</span></span></h3>
|
<h3 id="setSubject"><span class="symbol-name">setSubject</span><span class="signature"><span class="signature-params">(subject)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
<p>Updates the group subject</p>
|
<p>Updates the group subject</p>
|
||||||
<section>
|
<section>
|
||||||
<h4>Parameter</h4>
|
<h4>Parameter</h4>
|
||||||
|
|
@ -883,7 +887,9 @@
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
<dt>Returns</dt>
|
<dt>Returns</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><code>Promise</code> </p>
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the subject was properly updated. This can return false if the user does not have the necessary permissions.</p>
|
||||||
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
|
@ -921,7 +927,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: GroupNotification</title>
|
<title>whatsapp-web.js 1.16.0 » Class: GroupNotification</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -233,7 +233,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: InterfaceController</title>
|
<title>whatsapp-web.js 1.16.0 » Class: InterfaceController</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -382,7 +382,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Label</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Label</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -163,7 +163,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
188
docs/LegacySessionAuth.html
Normal file
188
docs/LegacySessionAuth.html
Normal file
|
|
@ -0,0 +1,188 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>whatsapp-web.js 1.16.0 » Class: LegacySessionAuth</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>16.<wbr>0</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<div id="jsdoc-body-container">
|
||||||
|
<div id="jsdoc-content">
|
||||||
|
<div id="jsdoc-content-container">
|
||||||
|
<div id="jsdoc-main" role="main">
|
||||||
|
<header class="page-header">
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-kind">class</span></div>
|
||||||
|
<h1><small></small><span class="symbol-name">LegacySessionAuth</span></h1>
|
||||||
|
<p class="source-link">Source: <a href="authStrategies_LegacySessionAuth.js.html#source-line-16">authStrategies/<wbr>LegacySessionAuth.<wbr>js:16</a></p>
|
||||||
|
<div class="symbol-classdesc">
|
||||||
|
<p>Legacy session auth strategy
|
||||||
|
Not compatible with multi-device accounts.</p>
|
||||||
|
</div>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
</header>
|
||||||
|
<section id="summary">
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2 id="LegacySessionAuth">new <span class="symbol-name">LegacySessionAuth</span><span class="signature"><span class="signature-params">(options)</span></span></h2>
|
||||||
|
<section>
|
||||||
|
<h3>Parameters</h3>
|
||||||
|
<table class="jsdoc-details-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Optional</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>options</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>options</p>
|
||||||
|
<p>Values in <code>options</code> have the following properties:</p>
|
||||||
|
<table class="jsdoc-details-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Optional</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>restartOnAuthFail</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Restart client with a new session (i.e. use null 'session' var) if authentication fails</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>session</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Whatsapp session to restore. If not set, will start a new session</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>session.WABrowserId</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>session.WASecretBundle</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>session.WAToken1</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>session.WAToken2</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
</section>
|
||||||
|
</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 February 27, 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>
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: List</title>
|
<title>whatsapp-web.js 1.16.0 » Class: List</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -256,7 +256,7 @@ Returns: [{'title':'sectionTitle','rows':[{'r
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
135
docs/LocalAuth.html
Normal file
135
docs/LocalAuth.html
Normal file
|
|
@ -0,0 +1,135 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>whatsapp-web.js 1.16.0 » Class: LocalAuth</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>16.<wbr>0</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<div id="jsdoc-body-container">
|
||||||
|
<div id="jsdoc-content">
|
||||||
|
<div id="jsdoc-content-container">
|
||||||
|
<div id="jsdoc-main" role="main">
|
||||||
|
<header class="page-header">
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-kind">class</span></div>
|
||||||
|
<h1><small></small><span class="symbol-name">LocalAuth</span></h1>
|
||||||
|
<p class="source-link">Source: <a href="authStrategies_LocalAuth.js.html#source-line-13">authStrategies/<wbr>LocalAuth.<wbr>js:13</a></p>
|
||||||
|
<div class="symbol-classdesc">
|
||||||
|
<p>Local directory-based authentication</p>
|
||||||
|
</div>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
</header>
|
||||||
|
<section id="summary">
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2 id="LocalAuth">new <span class="symbol-name">LocalAuth</span><span class="signature"><span class="signature-params">(options)</span></span></h2>
|
||||||
|
<section>
|
||||||
|
<h3>Parameters</h3>
|
||||||
|
<table class="jsdoc-details-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Optional</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>options</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>options</p>
|
||||||
|
<p>Values in <code>options</code> have the following properties:</p>
|
||||||
|
<table class="jsdoc-details-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Optional</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>clientId</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Client id to distinguish instances if you are using multiple, otherwise keep null if you are using only one instance</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>dataPath</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Change the default path for saving session files, default is: "./.wwebjs_auth/"</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
</section>
|
||||||
|
</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 February 27, 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>
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Location</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Location</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -149,7 +149,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: Message</title>
|
<title>whatsapp-web.js 1.16.0 » Class: Message</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -54,6 +54,9 @@
|
||||||
<dt><a href="Message.html#deviceType">deviceType</a></dt>
|
<dt><a href="Message.html#deviceType">deviceType</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt><a href="Message.html#duration">duration</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Message.html#forwardingScore">forwardingScore</a></dt>
|
<dt><a href="Message.html#forwardingScore">forwardingScore</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -97,13 +100,13 @@
|
||||||
<dt><a href="Message.html#links">links</a></dt>
|
<dt><a href="Message.html#links">links</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt><a href="Message.html#location">location</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-column">
|
<div class="summary-column">
|
||||||
<dl class="dl-summary-callout">
|
<dl class="dl-summary-callout">
|
||||||
<dt><a href="Message.html#location">location</a></dt>
|
|
||||||
<dd>
|
|
||||||
</dd>
|
|
||||||
<dt><a href="Message.html#mediaKey">mediaKey</a></dt>
|
<dt><a href="Message.html#mediaKey">mediaKey</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -113,6 +116,9 @@
|
||||||
<dt><a href="Message.html#orderId">orderId</a></dt>
|
<dt><a href="Message.html#orderId">orderId</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt><a href="Message.html#rawData">rawData</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Message.html#timestamp">timestamp</a></dt>
|
<dt><a href="Message.html#timestamp">timestamp</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -178,6 +184,9 @@
|
||||||
<dt><a href="Message.html#getQuotedMessage">getQuotedMessage()</a></dt>
|
<dt><a href="Message.html#getQuotedMessage">getQuotedMessage()</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt><a href="Message.html#reload">reload()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
<dt><a href="Message.html#reply">reply(content[, chatId][, options])</a></dt>
|
<dt><a href="Message.html#reply">reply(content[, chatId][, options])</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -227,6 +236,11 @@
|
||||||
<p>String that represents from which device type the message was sent</p>
|
<p>String that represents from which device type the message was sent</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
</dl>
|
</dl>
|
||||||
|
<h3 id="duration"><span class="symbol-name">duration</span><small class="property-type">
|
||||||
|
string</small></h3>
|
||||||
|
<p>Indicates the duration of the message in seconds</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
<h3 id="forwardingScore"><span class="symbol-name">forwardingScore</span><small class="property-type">
|
<h3 id="forwardingScore"><span class="symbol-name">forwardingScore</span><small class="property-type">
|
||||||
number</small></h3>
|
number</small></h3>
|
||||||
<p>Indicates how many times the message was forwarded.</p>
|
<p>Indicates how many times the message was forwarded.</p>
|
||||||
|
|
@ -313,6 +327,11 @@
|
||||||
<p>Order ID for message type ORDER</p>
|
<p>Order ID for message type ORDER</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
</dl>
|
</dl>
|
||||||
|
<h3 id="rawData"><span class="symbol-name">rawData</span><small class="property-type">
|
||||||
|
Object</small></h3>
|
||||||
|
<p>Returns message in a raw format</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
<h3 id="timestamp"><span class="symbol-name">timestamp</span><small class="property-type">
|
<h3 id="timestamp"><span class="symbol-name">timestamp</span><small class="property-type">
|
||||||
number</small></h3>
|
number</small></h3>
|
||||||
<p>Unix timestamp for when the message was created</p>
|
<p>Unix timestamp for when the message was created</p>
|
||||||
|
|
@ -496,6 +515,16 @@
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="reload"><span class="symbol-name">reload</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing <a href="Message.html">Message</a></span></span></h3>
|
||||||
|
<p>Reloads this Message object's data in-place with the latest values from WhatsApp Web.
|
||||||
|
Note that the Message must still be in the web app cache for this to work, otherwise will return null.</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing <a href="Message.html">Message</a></code> </p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
<h3 id="reply"><span class="symbol-name">reply</span><span class="signature"><span class="signature-params">(content[, chatId][, options])</span> → <span class="signature-returns"> Promise containing <a href="Message.html">Message</a></span></span></h3>
|
<h3 id="reply"><span class="symbol-name">reply</span><span class="signature"><span class="signature-params">(content[, chatId][, options])</span> → <span class="signature-returns"> Promise containing <a href="Message.html">Message</a></span></span></h3>
|
||||||
<p>Sends a message as a reply to this message. If chatId is specified, it will be sent
|
<p>Sends a message as a reply to this message. If chatId is specified, it will be sent
|
||||||
through the specified Chat. If not, it will send the message
|
through the specified Chat. If not, it will send the message
|
||||||
|
|
@ -580,7 +609,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.7">
|
<meta name="generator" content="JSDoc 3.6.7">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.15.8 » Class: MessageMedia</title>
|
<title>whatsapp-web.js 1.16.0 » Class: MessageMedia</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/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/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 rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||||
<div id="jsdoc-navbar-container">
|
<div id="jsdoc-navbar-container">
|
||||||
<div id="jsdoc-navbar-content">
|
<div id="jsdoc-navbar-content">
|
||||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>15.<wbr>8</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>16.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -343,7 +343,7 @@
|
||||||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||||
<div id="jsdoc-footer-container">
|
<div id="jsdoc-footer-container">
|
||||||
<p>
|
<p>
|
||||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 25, 2022.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.7 on February 27, 2022.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue