chore(): generate docs
This commit is contained in:
parent
477db5a7c9
commit
2128f97729
75 changed files with 10148 additions and 4112 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: Base</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: BaseAuthStrategy</title>
|
<title>whatsapp-web.js 1.29.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/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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: Broadcast</title>
|
<title>whatsapp-web.js 1.29.0 » Class: Broadcast</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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -152,7 +152,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: BusinessContact</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -326,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: Buttons</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: Call</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -168,7 +168,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
911
docs/Channel.html
Normal file
911
docs/Channel.html
Normal file
|
|
@ -0,0 +1,911 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>whatsapp-web.js 1.29.0 » Class: Channel</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>29.<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">Channel</span></h1>
|
||||||
|
<p class="source-link">Source: <a href="structures_Channel.js.html#source-line-18">structures/<wbr>Channel.<wbr>js:18</a></p>
|
||||||
|
<div class="symbol-classdesc">
|
||||||
|
<p>Represents a Channel on WhatsApp</p>
|
||||||
|
</div>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
</header>
|
||||||
|
<section id="summary">
|
||||||
|
<div class="summary-callout">
|
||||||
|
<h2 class="summary-callout-heading">Properties</h2>
|
||||||
|
<div class="summary-content">
|
||||||
|
<div class="summary-column">
|
||||||
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Channel.html#description">description</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#id">id</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#isChannel">isChannel</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#isGroup">isGroup</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<div class="summary-column">
|
||||||
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Channel.html#isMuted">isMuted</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#isReadOnly">isReadOnly</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#lastMessage">lastMessage</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#muteExpiration">muteExpiration</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<div class="summary-column">
|
||||||
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Channel.html#name">name</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#timestamp">timestamp</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#unreadCount">unreadCount</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="summary-callout">
|
||||||
|
<h2 class="summary-callout-heading">Methods</h2>
|
||||||
|
<div class="summary-content">
|
||||||
|
<div class="summary-column">
|
||||||
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Channel.html#_muteUnmuteChannel">_muteUnmuteChannel(action)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#_setChannelMetadata">_setChannelMetadata(value, property)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#acceptChannelAdminInvite">acceptChannelAdminInvite()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#deleteChannel">deleteChannel()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#demoteChannelAdmin">demoteChannelAdmin(userId)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#fetchMessages">fetchMessages(searchOptions)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<div class="summary-column">
|
||||||
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Channel.html#getSubscribers">getSubscribers(limit)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#mute">mute()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#revokeChannelAdminInvite">revokeChannelAdminInvite(userId)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#sendChannelAdminInvite">sendChannelAdminInvite(chatId, options)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#sendMessage">sendMessage(content, options)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#sendSeen">sendSeen()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<div class="summary-column">
|
||||||
|
<dl class="dl-summary-callout">
|
||||||
|
<dt><a href="Channel.html#setDescription">setDescription(newDescription)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#setProfilePicture">setProfilePicture(newProfilePicture)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#setReactionSetting">setReactionSetting(reactionCode)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#setSubject">setSubject(newSubject)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#transferChannelOwnership">transferChannelOwnership(newOwnerId, options)</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Channel.html#unmute">unmute()</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2 id="Channel">new <span class="symbol-name">Channel</span><span class="signature"><span class="signature-params">()</span></span></h2>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Extends</dt>
|
||||||
|
<dd><a href="Base.html">Base</a></dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2>Properties</h2>
|
||||||
|
<section>
|
||||||
|
<h3 id="description"><span class="symbol-name">description</span><small class="property-type">
|
||||||
|
string</small></h3>
|
||||||
|
<p>The channel description</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="id"><span class="symbol-name">id</span><small class="property-type">
|
||||||
|
<a href="global.html#ChannelId">ChannelId</a></small></h3>
|
||||||
|
<p>ID that represents the channel</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="isChannel"><span class="symbol-name">isChannel</span><small class="property-type">
|
||||||
|
boolean</small></h3>
|
||||||
|
<p>Indicates if it is a Channel</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="isGroup"><span class="symbol-name">isGroup</span><small class="property-type">
|
||||||
|
boolean</small></h3>
|
||||||
|
<p>Indicates if it is a Group</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="isMuted"><span class="symbol-name">isMuted</span><small class="property-type">
|
||||||
|
boolean</small></h3>
|
||||||
|
<p>Indicates if the channel is muted or not</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="isReadOnly"><span class="symbol-name">isReadOnly</span><small class="property-type">
|
||||||
|
boolean</small></h3>
|
||||||
|
<p>Indicates if the channel is readonly</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="lastMessage"><span class="symbol-name">lastMessage</span><small class="property-type">
|
||||||
|
<a href="Message.html">Message</a></small></h3>
|
||||||
|
<p>Last message in the channel</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="muteExpiration"><span class="symbol-name">muteExpiration</span><small class="property-type">
|
||||||
|
number</small></h3>
|
||||||
|
<p>Unix timestamp for when the mute expires</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="name"><span class="symbol-name">name</span><small class="property-type">
|
||||||
|
string</small></h3>
|
||||||
|
<p>Title of the channel</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="timestamp"><span class="symbol-name">timestamp</span><small class="property-type">
|
||||||
|
number</small></h3>
|
||||||
|
<p>Unix timestamp for when the last activity occurred</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
<h3 id="unreadCount"><span class="symbol-name">unreadCount</span><small class="property-type">
|
||||||
|
number</small></h3>
|
||||||
|
<p>Amount of messages unread</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
<h2>Methods</h2>
|
||||||
|
<section>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="_muteUnmuteChannel"><span class="symbol-name">_muteUnmuteChannel</span><span class="signature"><span class="signature-params">(action)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Internal method to mute or unmute the channel</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>action</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>The action: 'MUTE' or 'UNMUTE'</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="_setChannelMetadata"><span class="symbol-name">_setChannelMetadata</span><span class="signature"><span class="signature-params">(value, property)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Internal method to change the channel metadata</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>value</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>(string, number, or <a href="MessageMedia.html">MessageMedia</a>)</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>The new value to set</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>property</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>The property of a channel metadata to change</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="acceptChannelAdminInvite"><span class="symbol-name">acceptChannelAdminInvite</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Accepts a channel admin invitation and promotes the current user to a channel admin</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="deleteChannel"><span class="symbol-name">deleteChannel</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Deletes the channel you created</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="demoteChannelAdmin"><span class="symbol-name">demoteChannelAdmin</span><span class="signature"><span class="signature-params">(userId)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Demotes a channel admin to a regular subscriber (can be used also for self-demotion)</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>userId</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>The user ID to demote</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="fetchMessages"><span class="symbol-name">fetchMessages</span><span class="signature"><span class="signature-params">(searchOptions)</span> → <span class="signature-returns"> Promise containing Array of <a href="Message.html">Message</a></span></span></h3>
|
||||||
|
<p>Loads channel messages, sorted from earliest to latest</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>searchOptions</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Object</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Options for searching messages. Right now only limit and fromMe is supported</p>
|
||||||
|
<p>Values in <code>searchOptions</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>limit</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Number</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Yes</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>The amount of messages to return. If no limit is specified, the available messages will be returned. Note that the actual number of returned messages may be smaller if there aren't enough messages in the conversation. Set this to Infinity to load all messages</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>fromMe</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Boolean</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Yes</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Return only messages from the bot number or vise versa. To get all messages, leave the option undefined</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing Array of <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="getSubscribers"><span class="symbol-name">getSubscribers</span><span class="signature"><span class="signature-params">(limit)</span></span></h3>
|
||||||
|
<p>Gets the subscribers of the channel (only those who are in your contact list)</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>limit</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>number</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Optional parameter to specify the limit of subscribers to retrieve</p>
|
||||||
|
<p>Value can be null.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd></dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="mute"><span class="symbol-name">mute</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Mutes the channel</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="revokeChannelAdminInvite"><span class="symbol-name">revokeChannelAdminInvite</span><span class="signature"><span class="signature-params">(userId)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Revokes a channel admin invitation sent to a user by a channel owner</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>userId</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>The user ID the invitation was sent to</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="sendChannelAdminInvite"><span class="symbol-name">sendChannelAdminInvite</span><span class="signature"><span class="signature-params">(chatId, options)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Sends a channel admin invitation to a user, allowing them to become an admin of the channel</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>chatId</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>The ID of a user to send the channel admin invitation to</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>options</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p><a href="global.html#SendChannelAdminInviteOptions">SendChannelAdminInviteOptions</a></p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if an invitation was sent successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="sendMessage"><span class="symbol-name">sendMessage</span><span class="signature"><span class="signature-params">(content, options)</span> → <span class="signature-returns"> Promise containing <a href="Message.html">Message</a></span></span></h3>
|
||||||
|
<p>Sends a message to this channel</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>content</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>(string or <a href="MessageMedia.html">MessageMedia</a>)</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>options</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p><a href="global.html#MessageSendOptions">MessageSendOptions</a></p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>Value can be null.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing <a href="Message.html">Message</a></code>
|
||||||
|
<p>Message that was just sent</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</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">()</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Sets the channel as seen</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code> </p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<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">(newDescription)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Updates the channel description</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>newDescription</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="setProfilePicture"><span class="symbol-name">setProfilePicture</span><span class="signature"><span class="signature-params">(newProfilePicture)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Updates the channel profile picture</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>newProfilePicture</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p><a href="MessageMedia.html">MessageMedia</a></p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="setReactionSetting"><span class="symbol-name">setReactionSetting</span><span class="signature"><span class="signature-params">(reactionCode)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Updates available reactions to use in the channel</p>
|
||||||
|
<p>Valid values for passing to the method are:
|
||||||
|
0 for NONE reactions to be avaliable
|
||||||
|
1 for BASIC reactions to be available: 👍, ❤️, 😂, 😮, 😢, 🙏
|
||||||
|
2 for ALL reactions to be available</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>reactionCode</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>number</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<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">(newSubject)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Updates the channel subject</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>newSubject</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<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>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="transferChannelOwnership"><span class="symbol-name">transferChannelOwnership</span><span class="signature"><span class="signature-params">(newOwnerId, options)</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Transfers a channel ownership to another user.
|
||||||
|
Note: the user you are transferring the channel ownership to must be a channel admin.</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>newOwnerId</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>string</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>options</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p><a href="global.html#TransferChannelOwnershipOptions">TransferChannelOwnershipOptions</a></p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
||||||
|
<h3 id="unmute"><span class="symbol-name">unmute</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
|
<p>Unmutes the channel</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
<dt>Returns</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code>Promise containing boolean</code>
|
||||||
|
<p>Returns true if the operation completed successfully, false otherwise</p>
|
||||||
|
</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</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.11 on May 31, 2025.
|
||||||
|
</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.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: Chat</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -270,12 +270,12 @@
|
||||||
</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="clearMessages"><span class="symbol-name">clearMessages</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing Boolean</span></span></h3>
|
<h3 id="clearMessages"><span class="symbol-name">clearMessages</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
<p>Clears all messages from the chat</p>
|
<p>Clears all messages from the chat</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
<dt>Returns</dt>
|
<dt>Returns</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><code>Promise containing Boolean</code>
|
<p><code>Promise containing boolean</code>
|
||||||
<p>result</p>
|
<p>result</p>
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -502,7 +502,7 @@
|
||||||
</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="sendSeen"><span class="symbol-name">sendSeen</span><span class="signature"><span class="signature-params">()</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">()</span> → <span class="signature-returns"> Promise containing Boolean</span></span></h3>
|
||||||
<p>Set the chat as seen</p>
|
<p>Sets the chat as seen</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
<dt>Returns</dt>
|
<dt>Returns</dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
|
@ -567,7 +567,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
11218
docs/Client.html
11218
docs/Client.html
File diff suppressed because it is too large
Load diff
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Source: Client.js</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -46,7 +46,7 @@ const { LoadUtils } = require('./util/Injected/Utils');
|
||||||
const ChatFactory = require('./factories/ChatFactory');
|
const ChatFactory = require('./factories/ChatFactory');
|
||||||
const ContactFactory = require('./factories/ContactFactory');
|
const ContactFactory = require('./factories/ContactFactory');
|
||||||
const WebCacheFactory = require('./webCache/WebCacheFactory');
|
const WebCacheFactory = require('./webCache/WebCacheFactory');
|
||||||
const { ClientInfo, Message, MessageMedia, Contact, Location, Poll, PollVote, GroupNotification, Label, Call, Buttons, List, Reaction, Broadcast} = require('./structures');
|
const { Broadcast, Buttons, Call, ClientInfo, Contact, GroupNotification, Label, List, Location, Message, MessageMedia, Poll, PollVote, Reaction } = require('./structures');
|
||||||
const NoAuth = require('./authStrategies/NoAuth');
|
const NoAuth = require('./authStrategies/NoAuth');
|
||||||
const {exposeFunctionIfAbsent} = require('./util/Puppeteer');
|
const {exposeFunctionIfAbsent} = require('./util/Puppeteer');
|
||||||
|
|
||||||
|
|
@ -851,11 +851,9 @@ class Client extends EventEmitter {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
async sendSeen(chatId) {
|
async sendSeen(chatId) {
|
||||||
const result = await this.pupPage.evaluate(async (chatId) => {
|
return await this.pupPage.evaluate(async (chatId) => {
|
||||||
return window.WWebJS.sendSeen(chatId);
|
return window.WWebJS.sendSeen(chatId);
|
||||||
|
|
||||||
}, chatId);
|
}, chatId);
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -885,6 +883,7 @@ class Client extends EventEmitter {
|
||||||
* @property {string} [stickerName=undefined] - Sets the name of the sticker, (if sendMediaAsSticker is true).
|
* @property {string} [stickerName=undefined] - Sets the name of the sticker, (if sendMediaAsSticker is true).
|
||||||
* @property {string[]} [stickerCategories=undefined] - Sets the categories of the sticker, (if sendMediaAsSticker is true). Provide emoji char array, can be null.
|
* @property {string[]} [stickerCategories=undefined] - Sets the categories of the sticker, (if sendMediaAsSticker is true). Provide emoji char array, can be null.
|
||||||
* @property {MessageMedia} [media] - Media to be sent
|
* @property {MessageMedia} [media] - Media to be sent
|
||||||
|
* @property {any} [extra] - Extra options
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -896,6 +895,19 @@ class Client extends EventEmitter {
|
||||||
* @returns {Promise&lt;Message>} Message that was just sent
|
* @returns {Promise&lt;Message>} Message that was just sent
|
||||||
*/
|
*/
|
||||||
async sendMessage(chatId, content, options = {}) {
|
async sendMessage(chatId, content, options = {}) {
|
||||||
|
const isChannel = /@\w*newsletter\b/.test(chatId);
|
||||||
|
|
||||||
|
if (isChannel &amp;&amp; [
|
||||||
|
options.sendMediaAsDocument, options.quotedMessageId,
|
||||||
|
options.parseVCards, options.isViewOnce,
|
||||||
|
content instanceof Location, content instanceof Contact,
|
||||||
|
content instanceof Buttons, content instanceof List,
|
||||||
|
Array.isArray(content) &amp;&amp; content.length > 0 &amp;&amp; content[0] instanceof Contact
|
||||||
|
].includes(true)) {
|
||||||
|
console.warn('The message type is currently not supported for sending in channels,\nthe supported message types are: text, image, sticker, gif, video, voice and poll.');
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (options.mentions) {
|
if (options.mentions) {
|
||||||
!Array.isArray(options.mentions) &amp;&amp; (options.mentions = [options.mentions]);
|
!Array.isArray(options.mentions) &amp;&amp; (options.mentions = [options.mentions]);
|
||||||
if (options.mentions.some((possiblyContact) => possiblyContact instanceof Contact)) {
|
if (options.mentions.some((possiblyContact) => possiblyContact instanceof Contact)) {
|
||||||
|
|
@ -921,14 +933,14 @@ class Client extends EventEmitter {
|
||||||
extraOptions: options.extra
|
extraOptions: options.extra
|
||||||
};
|
};
|
||||||
|
|
||||||
const sendSeen = typeof options.sendSeen === 'undefined' ? true : options.sendSeen;
|
const sendSeen = options.sendSeen !== false;
|
||||||
|
|
||||||
if (content instanceof MessageMedia) {
|
if (content instanceof MessageMedia) {
|
||||||
internalOptions.attachment = content;
|
internalOptions.media = content;
|
||||||
internalOptions.isViewOnce = options.isViewOnce,
|
internalOptions.isViewOnce = options.isViewOnce,
|
||||||
content = '';
|
content = '';
|
||||||
} else if (options.media instanceof MessageMedia) {
|
} else if (options.media instanceof MessageMedia) {
|
||||||
internalOptions.attachment = options.media;
|
internalOptions.media = options.media;
|
||||||
internalOptions.caption = content;
|
internalOptions.caption = content;
|
||||||
internalOptions.isViewOnce = options.isViewOnce,
|
internalOptions.isViewOnce = options.isViewOnce,
|
||||||
content = '';
|
content = '';
|
||||||
|
|
@ -945,17 +957,19 @@ class Client extends EventEmitter {
|
||||||
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) {
|
||||||
|
console.warn('Buttons are now deprecated. See more at https://www.youtube.com/watch?v=hv1R1rLeVVE.');
|
||||||
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) {
|
||||||
|
console.warn('Lists are now deprecated. See more at https://www.youtube.com/watch?v=hv1R1rLeVVE.');
|
||||||
internalOptions.list = content;
|
internalOptions.list = content;
|
||||||
content = '';
|
content = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (internalOptions.sendMediaAsSticker &amp;&amp; internalOptions.attachment) {
|
if (internalOptions.sendMediaAsSticker &amp;&amp; internalOptions.media) {
|
||||||
internalOptions.attachment = await Util.formatToWebpSticker(
|
internalOptions.media = await Util.formatToWebpSticker(
|
||||||
internalOptions.attachment, {
|
internalOptions.media, {
|
||||||
name: options.stickerName,
|
name: options.stickerName,
|
||||||
author: options.stickerAuthor,
|
author: options.stickerAuthor,
|
||||||
categories: options.stickerCategories
|
categories: options.stickerCategories
|
||||||
|
|
@ -963,20 +977,60 @@ class Client extends EventEmitter {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const newMessage = await this.pupPage.evaluate(async (chatId, message, options, sendSeen) => {
|
const sentMsg = await this.pupPage.evaluate(async (chatId, content, options, sendSeen) => {
|
||||||
const chatWid = window.Store.WidFactory.createWid(chatId);
|
const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
||||||
const chat = await window.Store.Chat.find(chatWid);
|
|
||||||
|
|
||||||
|
if (!chat) return null;
|
||||||
|
|
||||||
if (sendSeen) {
|
if (sendSeen) {
|
||||||
await window.WWebJS.sendSeen(chatId);
|
await window.WWebJS.sendSeen(chatId);
|
||||||
}
|
}
|
||||||
|
|
||||||
const msg = await window.WWebJS.sendMessage(chat, message, options, sendSeen);
|
const msg = await window.WWebJS.sendMessage(chat, content, options);
|
||||||
return window.WWebJS.getMessageModel(msg);
|
return msg
|
||||||
|
? window.WWebJS.getMessageModel(msg)
|
||||||
|
: undefined;
|
||||||
}, chatId, content, internalOptions, sendSeen);
|
}, chatId, content, internalOptions, sendSeen);
|
||||||
|
|
||||||
return new Message(this, newMessage);
|
return sentMsg
|
||||||
|
? new Message(this, sentMsg)
|
||||||
|
: undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} SendChannelAdminInviteOptions
|
||||||
|
* @property {?string} comment The comment to be added to an invitation
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends a channel admin invitation to a user, allowing them to become an admin of the channel
|
||||||
|
* @param {string} chatId The ID of a user to send the channel admin invitation to
|
||||||
|
* @param {string} channelId The ID of a channel for which the invitation is being sent
|
||||||
|
* @param {SendChannelAdminInviteOptions} options
|
||||||
|
* @returns {Promise&lt;boolean>} Returns true if an invitation was sent successfully, false otherwise
|
||||||
|
*/
|
||||||
|
async sendChannelAdminInvite(chatId, channelId, options = {}) {
|
||||||
|
const response = await this.pupPage.evaluate(async (chatId, channelId, options) => {
|
||||||
|
const channelWid = window.Store.WidFactory.createWid(channelId);
|
||||||
|
const chatWid = window.Store.WidFactory.createWid(chatId);
|
||||||
|
const chat = window.Store.Chat.get(chatWid) || (await window.Store.Chat.find(chatWid));
|
||||||
|
|
||||||
|
if (!chatWid.isUser()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return await window.Store.SendChannelMessage.sendNewsletterAdminInviteMessage(
|
||||||
|
chat,
|
||||||
|
{
|
||||||
|
newsletterWid: channelWid,
|
||||||
|
invitee: chatWid,
|
||||||
|
inviteMessage: options.comment,
|
||||||
|
base64Thumb: await window.WWebJS.getProfilePicThumbToBase64(channelWid)
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}, chatId, channelId, options);
|
||||||
|
|
||||||
|
return response.messageSendResult === 'OK';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1002,7 +1056,7 @@ class Client extends EventEmitter {
|
||||||
* @returns {Promise&lt;Array&lt;Chat>>}
|
* @returns {Promise&lt;Array&lt;Chat>>}
|
||||||
*/
|
*/
|
||||||
async getChats() {
|
async getChats() {
|
||||||
let chats = await this.pupPage.evaluate(async () => {
|
const chats = await this.pupPage.evaluate(async () => {
|
||||||
return await window.WWebJS.getChats();
|
return await window.WWebJS.getChats();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -1010,16 +1064,51 @@ class Client extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get chat instance by ID
|
* Gets all cached {@link Channel} instance
|
||||||
|
* @returns {Promise&lt;Array&lt;Channel>>}
|
||||||
|
*/
|
||||||
|
async getChannels() {
|
||||||
|
const channels = await this.pupPage.evaluate(async () => {
|
||||||
|
return await window.WWebJS.getChannels();
|
||||||
|
});
|
||||||
|
|
||||||
|
return channels.map((channel) => ChatFactory.create(this, channel));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets chat or channel instance by ID
|
||||||
* @param {string} chatId
|
* @param {string} chatId
|
||||||
* @returns {Promise&lt;Chat>}
|
* @returns {Promise&lt;Chat|Channel>}
|
||||||
*/
|
*/
|
||||||
async getChatById(chatId) {
|
async getChatById(chatId) {
|
||||||
let chat = await this.pupPage.evaluate(async chatId => {
|
const chat = await this.pupPage.evaluate(async chatId => {
|
||||||
return await window.WWebJS.getChat(chatId);
|
return await window.WWebJS.getChat(chatId);
|
||||||
}, chatId);
|
}, chatId);
|
||||||
|
return chat
|
||||||
|
? ChatFactory.create(this, chat)
|
||||||
|
: undefined;
|
||||||
|
}
|
||||||
|
|
||||||
return ChatFactory.create(this, chat);
|
/**
|
||||||
|
* Gets a {@link Channel} instance by invite code
|
||||||
|
* @param {string} inviteCode The code that comes after the 'https://whatsapp.com/channel/'
|
||||||
|
* @returns {Promise&lt;Channel>}
|
||||||
|
*/
|
||||||
|
async getChannelByInviteCode(inviteCode) {
|
||||||
|
const channel = await this.pupPage.evaluate(async (inviteCode) => {
|
||||||
|
let channelMetadata;
|
||||||
|
try {
|
||||||
|
channelMetadata = await window.WWebJS.getChannelMetadata(inviteCode);
|
||||||
|
} catch (err) {
|
||||||
|
if (err.name === 'ServerStatusCodeError') return null;
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
return await window.WWebJS.getChat(channelMetadata.id);
|
||||||
|
}, inviteCode);
|
||||||
|
|
||||||
|
return channel
|
||||||
|
? ChatFactory.create(this, channel)
|
||||||
|
: undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1089,6 +1178,61 @@ class Client extends EventEmitter {
|
||||||
return res.gid._serialized;
|
return res.gid._serialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accepts a channel admin invitation and promotes the current user to a channel admin
|
||||||
|
* @param {string} channelId The channel ID to accept the admin invitation from
|
||||||
|
* @returns {Promise&lt;boolean>} Returns true if the operation completed successfully, false otherwise
|
||||||
|
*/
|
||||||
|
async acceptChannelAdminInvite(channelId) {
|
||||||
|
return await this.pupPage.evaluate(async (channelId) => {
|
||||||
|
try {
|
||||||
|
await window.Store.ChannelUtils.acceptNewsletterAdminInvite(channelId);
|
||||||
|
return true;
|
||||||
|
} catch (err) {
|
||||||
|
if (err.name === 'ServerStatusCodeError') return false;
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
}, channelId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Revokes a channel admin invitation sent to a user by a channel owner
|
||||||
|
* @param {string} channelId The channel ID an invitation belongs to
|
||||||
|
* @param {string} userId The user ID the invitation was sent to
|
||||||
|
* @returns {Promise&lt;boolean>} Returns true if the operation completed successfully, false otherwise
|
||||||
|
*/
|
||||||
|
async revokeChannelAdminInvite(channelId, userId) {
|
||||||
|
return await this.pupPage.evaluate(async (channelId, userId) => {
|
||||||
|
try {
|
||||||
|
const userWid = window.Store.WidFactory.createWid(userId);
|
||||||
|
await window.Store.ChannelUtils.revokeNewsletterAdminInvite(channelId, userWid);
|
||||||
|
return true;
|
||||||
|
} catch (err) {
|
||||||
|
if (err.name === 'ServerStatusCodeError') return false;
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
}, channelId, userId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Demotes a channel admin to a regular subscriber (can be used also for self-demotion)
|
||||||
|
* @param {string} channelId The channel ID to demote an admin in
|
||||||
|
* @param {string} userId The user ID to demote
|
||||||
|
* @returns {Promise&lt;boolean>} Returns true if the operation completed successfully, false otherwise
|
||||||
|
*/
|
||||||
|
async demoteChannelAdmin(channelId, userId) {
|
||||||
|
return await this.pupPage.evaluate(async (channelId, userId) => {
|
||||||
|
try {
|
||||||
|
const userWid = window.Store.WidFactory.createWid(userId);
|
||||||
|
await window.Store.ChannelUtils.demoteNewsletterAdmin(channelId, userWid);
|
||||||
|
return true;
|
||||||
|
} catch (err) {
|
||||||
|
if (err.name === 'ServerStatusCodeError') return false;
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
}, channelId, userId);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Accepts a private invitation to join a group
|
* Accepts a private invitation to join a group
|
||||||
* @param {object} inviteInfo Invite V4 Info
|
* @param {object} inviteInfo Invite V4 Info
|
||||||
|
|
@ -1165,7 +1309,7 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async archiveChat(chatId) {
|
async archiveChat(chatId) {
|
||||||
return await this.pupPage.evaluate(async chatId => {
|
return await this.pupPage.evaluate(async chatId => {
|
||||||
let chat = await window.Store.Chat.get(chatId);
|
let chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
||||||
await window.Store.Cmd.archiveChat(chat, true);
|
await window.Store.Cmd.archiveChat(chat, true);
|
||||||
return true;
|
return true;
|
||||||
}, chatId);
|
}, chatId);
|
||||||
|
|
@ -1177,7 +1321,7 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async unarchiveChat(chatId) {
|
async unarchiveChat(chatId) {
|
||||||
return await this.pupPage.evaluate(async chatId => {
|
return await this.pupPage.evaluate(async chatId => {
|
||||||
let chat = await window.Store.Chat.get(chatId);
|
let chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
||||||
await window.Store.Cmd.archiveChat(chat, false);
|
await window.Store.Cmd.archiveChat(chat, false);
|
||||||
return false;
|
return false;
|
||||||
}, chatId);
|
}, chatId);
|
||||||
|
|
@ -1189,7 +1333,7 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async pinChat(chatId) {
|
async pinChat(chatId) {
|
||||||
return this.pupPage.evaluate(async chatId => {
|
return this.pupPage.evaluate(async chatId => {
|
||||||
let chat = window.Store.Chat.get(chatId);
|
let chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
||||||
if (chat.pin) {
|
if (chat.pin) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1212,7 +1356,7 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async unpinChat(chatId) {
|
async unpinChat(chatId) {
|
||||||
return this.pupPage.evaluate(async chatId => {
|
return this.pupPage.evaluate(async chatId => {
|
||||||
let chat = window.Store.Chat.get(chatId);
|
let chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
||||||
if (!chat.pin) {
|
if (!chat.pin) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -1264,7 +1408,7 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async markChatUnread(chatId) {
|
async markChatUnread(chatId) {
|
||||||
await this.pupPage.evaluate(async chatId => {
|
await this.pupPage.evaluate(async chatId => {
|
||||||
let chat = await window.Store.Chat.get(chatId);
|
let chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
||||||
await window.Store.Cmd.markChatUnread(chat, true);
|
await window.Store.Cmd.markChatUnread(chat, true);
|
||||||
}, chatId);
|
}, chatId);
|
||||||
}
|
}
|
||||||
|
|
@ -1466,7 +1610,7 @@ class Client extends EventEmitter {
|
||||||
for (const participant of createGroupResult.participants) {
|
for (const participant of createGroupResult.participants) {
|
||||||
let isInviteV4Sent = false;
|
let isInviteV4Sent = false;
|
||||||
const participantId = participant.wid._serialized;
|
const participantId = participant.wid._serialized;
|
||||||
const statusCode = participant.error ?? 200;
|
const statusCode = participant.error || 200;
|
||||||
|
|
||||||
if (autoSendInviteV4 &amp;&amp; statusCode === 403) {
|
if (autoSendInviteV4 &amp;&amp; statusCode === 403) {
|
||||||
window.Store.Contact.gadd(participant.wid, { silent: true });
|
window.Store.Contact.gadd(participant.wid, { silent: true });
|
||||||
|
|
@ -1505,6 +1649,219 @@ class Client extends EventEmitter {
|
||||||
}, title, participants, options);
|
}, title, participants, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An object that handles the result for {@link createChannel} method
|
||||||
|
* @typedef {Object} CreateChannelResult
|
||||||
|
* @property {string} title A channel title
|
||||||
|
* @property {ChatId} nid An object that handels the newly created channel ID
|
||||||
|
* @property {string} nid.server 'newsletter'
|
||||||
|
* @property {string} nid.user 'XXXXXXXXXX'
|
||||||
|
* @property {string} nid._serialized 'XXXXXXXXXX@newsletter'
|
||||||
|
* @property {string} inviteLink The channel invite link, starts with 'https://whatsapp.com/channel/'
|
||||||
|
* @property {number} createdAtTs The timestamp the channel was created at
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Options for the channel creation
|
||||||
|
* @typedef {Object} CreateChannelOptions
|
||||||
|
* @property {?string} description The channel description
|
||||||
|
* @property {?MessageMedia} picture The channel profile picture
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new channel
|
||||||
|
* @param {string} title The channel name
|
||||||
|
* @param {CreateChannelOptions} options
|
||||||
|
* @returns {Promise&lt;CreateChannelResult|string>} Returns an object that handles the result for the channel creation or an error message as a string
|
||||||
|
*/
|
||||||
|
async createChannel(title, options = {}) {
|
||||||
|
return await this.pupPage.evaluate(async (title, options) => {
|
||||||
|
let response, { description = null, picture = null } = options;
|
||||||
|
|
||||||
|
if (!window.Store.ChannelUtils.isNewsletterCreationEnabled()) {
|
||||||
|
return 'CreateChannelError: A channel creation is not enabled';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (picture) {
|
||||||
|
picture = await window.WWebJS.cropAndResizeImage(picture, {
|
||||||
|
asDataUrl: true,
|
||||||
|
mimetype: 'image/jpeg',
|
||||||
|
size: 640,
|
||||||
|
quality: 1
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
response = await window.Store.ChannelUtils.createNewsletterQuery({
|
||||||
|
name: title,
|
||||||
|
description: description,
|
||||||
|
picture: picture,
|
||||||
|
});
|
||||||
|
} catch (err) {
|
||||||
|
if (err.name === 'ServerStatusCodeError') {
|
||||||
|
return 'CreateChannelError: An error occupied while creating a channel';
|
||||||
|
}
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
title: title,
|
||||||
|
nid: window.Store.JidToWid.newsletterJidToWid(response.idJid),
|
||||||
|
inviteLink: `https://whatsapp.com/channel/${response.newsletterInviteLinkMetadataMixin.inviteCode}`,
|
||||||
|
createdAtTs: response.newsletterCreationTimeMetadataMixin.creationTimeValue
|
||||||
|
};
|
||||||
|
}, title, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Subscribe to channel
|
||||||
|
* @param {string} channelId The channel ID
|
||||||
|
* @returns {Promise&lt;boolean>} Returns true if the operation completed successfully, false otherwise
|
||||||
|
*/
|
||||||
|
async subscribeToChannel(channelId) {
|
||||||
|
return await this.pupPage.evaluate(async (channelId) => {
|
||||||
|
return await window.WWebJS.subscribeToUnsubscribeFromChannel(channelId, 'Subscribe');
|
||||||
|
}, channelId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Options for unsubscribe from a channel
|
||||||
|
* @typedef {Object} UnsubscribeOptions
|
||||||
|
* @property {boolean} [deleteLocalModels = false] If true, after an unsubscription, it will completely remove a channel from the channel collection making it seem like the current user have never interacted with it. Otherwise it will only remove a channel from the list of channels the current user is subscribed to and will set the membership type for that channel to GUEST
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unsubscribe from channel
|
||||||
|
* @param {string} channelId The channel ID
|
||||||
|
* @param {UnsubscribeOptions} options
|
||||||
|
* @returns {Promise&lt;boolean>} Returns true if the operation completed successfully, false otherwise
|
||||||
|
*/
|
||||||
|
async unsubscribeFromChannel(channelId, options) {
|
||||||
|
return await this.pupPage.evaluate(async (channelId, options) => {
|
||||||
|
return await window.WWebJS.subscribeToUnsubscribeFromChannel(channelId, 'Unsubscribe', options);
|
||||||
|
}, channelId, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Options for transferring a channel ownership to another user
|
||||||
|
* @typedef {Object} TransferChannelOwnershipOptions
|
||||||
|
* @property {boolean} [shouldDismissSelfAsAdmin = false] If true, after the channel ownership is being transferred to another user, the current user will be dismissed as a channel admin and will become to a channel subscriber.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Transfers a channel ownership to another user.
|
||||||
|
* Note: the user you are transferring the channel ownership to must be a channel admin.
|
||||||
|
* @param {string} channelId
|
||||||
|
* @param {string} newOwnerId
|
||||||
|
* @param {TransferChannelOwnershipOptions} options
|
||||||
|
* @returns {Promise&lt;boolean>} Returns true if the operation completed successfully, false otherwise
|
||||||
|
*/
|
||||||
|
async transferChannelOwnership(channelId, newOwnerId, options = {}) {
|
||||||
|
return await this.pupPage.evaluate(async (channelId, newOwnerId, options) => {
|
||||||
|
const channel = await window.WWebJS.getChat(channelId, { getAsModel: false });
|
||||||
|
const newOwner = window.Store.Contact.get(newOwnerId) || (await window.Store.Contact.find(newOwnerId));
|
||||||
|
if (!channel.newsletterMetadata) {
|
||||||
|
await window.Store.NewsletterMetadataCollection.update(channel.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
await window.Store.ChannelUtils.changeNewsletterOwnerAction(channel, newOwner);
|
||||||
|
|
||||||
|
if (options.shouldDismissSelfAsAdmin) {
|
||||||
|
const meContact = window.Store.ContactCollection.getMeContact();
|
||||||
|
meContact &amp;&amp; (await window.Store.ChannelUtils.demoteNewsletterAdminAction(channel, meContact));
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}, channelId, newOwnerId, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Searches for channels based on search criteria, there are some notes:
|
||||||
|
* 1. The method finds only channels you are not subscribed to currently
|
||||||
|
* 2. If you have never been subscribed to a found channel
|
||||||
|
* or you have unsubscribed from it with {@link UnsubscribeOptions.deleteLocalModels} set to 'true',
|
||||||
|
* the lastMessage property of a found channel will be 'null'
|
||||||
|
*
|
||||||
|
* @param {Object} searchOptions Search options
|
||||||
|
* @param {string} [searchOptions.searchText = ''] Text to search
|
||||||
|
* @param {Array&lt;string>} [searchOptions.countryCodes = [your local region]] Array of country codes in 'ISO 3166-1 alpha-2' standart (@see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to search for channels created in these countries
|
||||||
|
* @param {boolean} [searchOptions.skipSubscribedNewsletters = false] If true, channels that user is subscribed to won't appear in found channels
|
||||||
|
* @param {number} [searchOptions.view = 0] View type, makes sense only when the searchText is empty. Valid values to provide are:
|
||||||
|
* 0 for RECOMMENDED channels
|
||||||
|
* 1 for TRENDING channels
|
||||||
|
* 2 for POPULAR channels
|
||||||
|
* 3 for NEW channels
|
||||||
|
* @param {number} [searchOptions.limit = 50] The limit of found channels to be appear in the returnig result
|
||||||
|
* @returns {Promise&lt;Array&lt;Channel>|[]>} Returns an array of Channel objects or an empty array if no channels were found
|
||||||
|
*/
|
||||||
|
async searchChannels(searchOptions = {}) {
|
||||||
|
return await this.pupPage.evaluate(async ({
|
||||||
|
searchText = '',
|
||||||
|
countryCodes = [window.Store.ChannelUtils.currentRegion],
|
||||||
|
skipSubscribedNewsletters = false,
|
||||||
|
view = 0,
|
||||||
|
limit = 50
|
||||||
|
}) => {
|
||||||
|
searchText = searchText.trim();
|
||||||
|
const currentRegion = window.Store.ChannelUtils.currentRegion;
|
||||||
|
if (![0, 1, 2, 3].includes(view)) view = 0;
|
||||||
|
|
||||||
|
countryCodes = countryCodes.length === 1 &amp;&amp; countryCodes[0] === currentRegion
|
||||||
|
? countryCodes
|
||||||
|
: countryCodes.filter((code) => Object.keys(window.Store.ChannelUtils.countryCodesIso).includes(code));
|
||||||
|
|
||||||
|
const viewTypeMapping = {
|
||||||
|
0: 'RECOMMENDED',
|
||||||
|
1: 'TRENDING',
|
||||||
|
2: 'POPULAR',
|
||||||
|
3: 'NEW'
|
||||||
|
};
|
||||||
|
|
||||||
|
searchOptions = {
|
||||||
|
searchText: searchText,
|
||||||
|
countryCodes: countryCodes,
|
||||||
|
skipSubscribedNewsletters: skipSubscribedNewsletters,
|
||||||
|
view: viewTypeMapping[view],
|
||||||
|
categories: [],
|
||||||
|
cursorToken: ''
|
||||||
|
};
|
||||||
|
|
||||||
|
const originalFunction = window.Store.ChannelUtils.getNewsletterDirectoryPageSize;
|
||||||
|
limit !== 50 &amp;&amp; (window.Store.ChannelUtils.getNewsletterDirectoryPageSize = () => limit);
|
||||||
|
|
||||||
|
const channels = (await window.Store.ChannelUtils.fetchNewsletterDirectories(searchOptions)).newsletters;
|
||||||
|
|
||||||
|
limit !== 50 &amp;&amp; (window.Store.ChannelUtils.getNewsletterDirectoryPageSize = originalFunction);
|
||||||
|
|
||||||
|
return channels
|
||||||
|
? await Promise.all(channels.map((channel) => window.WWebJS.getChatModel(channel, { isChannel: true })))
|
||||||
|
: [];
|
||||||
|
}, searchOptions);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deletes the channel you created
|
||||||
|
* @param {string} channelId The ID of a channel to delete
|
||||||
|
* @returns {Promise&lt;boolean>} Returns true if the operation completed successfully, false otherwise
|
||||||
|
*/
|
||||||
|
async deleteChannel(channelId) {
|
||||||
|
return await this.client.pupPage.evaluate(async (channelId) => {
|
||||||
|
const channel = await window.WWebJS.getChat(channelId, { getAsModel: false });
|
||||||
|
if (!channel) return false;
|
||||||
|
try {
|
||||||
|
await window.Store.ChannelUtils.deleteNewsletterAction(channel);
|
||||||
|
return true;
|
||||||
|
} catch (err) {
|
||||||
|
if (err.name === 'ServerStatusCodeError') return false;
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
}, channelId);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all current Labels
|
* Get all current Labels
|
||||||
* @returns {Promise&lt;Array&lt;Label>>}
|
* @returns {Promise&lt;Array&lt;Label>>}
|
||||||
|
|
@ -1863,7 +2220,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: ClientInfo</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -242,7 +242,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: Contact</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -293,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: GroupChat</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -470,7 +470,7 @@
|
||||||
<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="clearMessages"><span class="symbol-name">clearMessages</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing Boolean</span></span></h3>
|
<h3 id="clearMessages"><span class="symbol-name">clearMessages</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing boolean</span></span></h3>
|
||||||
<p>Clears all messages from the chat</p>
|
<p>Clears all messages from the chat</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
<dt>Inherited from</dt>
|
<dt>Inherited from</dt>
|
||||||
|
|
@ -914,7 +914,7 @@
|
||||||
</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="sendSeen"><span class="symbol-name">sendSeen</span><span class="signature"><span class="signature-params">()</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">()</span> → <span class="signature-returns"> Promise containing Boolean</span></span></h3>
|
||||||
<p>Set the chat as seen</p>
|
<p>Sets the chat as seen</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
<dt>Inherited from</dt>
|
<dt>Inherited from</dt>
|
||||||
<dd><a href="Chat.html#sendSeen">Chat#sendSeen</a></dd>
|
<dd><a href="Chat.html#sendSeen">Chat#sendSeen</a></dd>
|
||||||
|
|
@ -1225,7 +1225,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: GroupNotification</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: InterfaceController</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: Label</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: List</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: LocalAuth</title>
|
<title>whatsapp-web.js 1.29.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/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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -134,7 +134,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: LocalWebCache</title>
|
<title>whatsapp-web.js 1.29.0 » Class: LocalWebCache</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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -120,7 +120,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="generator" content="JSDoc 3.6.11">
|
<meta name="generator" content="JSDoc 3.6.11">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>whatsapp-web.js 1.28.1-alpha.0 » Class: Location</title>
|
<title>whatsapp-web.js 1.29.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>28.<wbr>1-alpha.<wbr>0</a>
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>29.<wbr>0</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -173,7 +173,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.11 on May 30, 2025.
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 31, 2025.
|
||||||
</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