docs: regenerate docs

This commit is contained in:
Pedro Lopez
2020-02-05 02:17:19 -04:00
parent 1ad9cac682
commit bf70eb1b87
27 changed files with 162 additions and 57 deletions

View File

@@ -4,7 +4,7 @@
<head>
<meta name="generator" content="JSDoc 3.6.3">
<meta charset="utf-8">
<title>whatsapp-web.js 0.3.2 &raquo; Home</title>
<title>whatsapp-web.js 0.3.2-post &raquo; Home</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">
@@ -15,7 +15,7 @@
<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 0.<wbr>3.<wbr>2</a>
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 0.<wbr>3.<wbr>2-post</a>
</div>
</div>
</nav>
@@ -27,18 +27,123 @@
<div id="jsdoc-main" role="main">
<header class="page-header">
<h1>
whatsapp-web.js 0.3.2
whatsapp-web.js 0.3.2-post
</h1>
</header>
<article>
<p><a href="https://www.npmjs.com/package/whatsapp-web.js"><img src="https://img.shields.io/npm/v/whatsapp-web.js.svg" alt="npm"></a></p>
<p><a href="https://www.npmjs.com/package/whatsapp-web.js"><img src="https://img.shields.io/npm/v/whatsapp-web.js.svg" alt="npm"></a> <a href="https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765"><img src="https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg" alt="Depfu"></a></p>
<h1>whatsapp-web.js</h1>
<p>A WhatsApp API client that connects through the WhatsApp Web browser app</p>
<p>It uses Puppeteer to run a real instance of Whatsapp Web to avoid getting blocked.</p>
<p><strong>NOTE:</strong> I can't guarantee you will not be blocked by using this method, although it has worked for me. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.</p>
<p>This is still very much a work in progress, but you can check out <a href="./example.js">example.js</a> to see how to read and send messages.</p>
<h2>Installation</h2>
<p>The module is now available on npm! <code>npm i whatsapp-web.js</code></p>
<p>Please note that Node v8+ is required due to Puppeteer.</p>
<h2>Example usage</h2>
<pre class="prettyprint source lang-js"><code>const { Client } = require('whatsapp-web.js');
const client = new Client();
client.on('qr', (qr) => {
// Generate and scan this code with your phone
console.log('QR RECEIVED', qr);
});
client.on('ready', () => {
console.log('Client is ready!');
});
client.on('message', msg => {
if (msg.body == '!ping') {
msg.reply('pong');
}
});
client.initialize();
</code></pre>
<p>Take a look at <a href="https://github.com/pedroslopez/whatsapp-web.js/blob/master/example.js">example.js</a> for another example with more use cases.</p>
<h2>Supported features</h2>
<table>
<thead>
<tr>
<th>Feature</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>Send messages</td>
<td></td>
</tr>
<tr>
<td>Receive messages</td>
<td></td>
</tr>
<tr>
<td>Send media (images/audio/documents)</td>
<td></td>
</tr>
<tr>
<td>Send media (video)</td>
<td><em>pending</em></td>
</tr>
<tr>
<td>Send stickers</td>
<td><em>pending</em></td>
</tr>
<tr>
<td>Receive media (images/audio/video/documents)</td>
<td></td>
</tr>
<tr>
<td>Send contact cards</td>
<td><em>pending</em></td>
</tr>
<tr>
<td>Send location</td>
<td><em>pending</em></td>
</tr>
<tr>
<td>Message replies</td>
<td></td>
</tr>
<tr>
<td>Join groups by invite</td>
<td></td>
</tr>
<tr>
<td>Modify group info (subject, description)</td>
<td></td>
</tr>
<tr>
<td>Add group participants</td>
<td></td>
</tr>
<tr>
<td>Kick group participants</td>
<td></td>
</tr>
<tr>
<td>Promote/demote group participants</td>
<td></td>
</tr>
<tr>
<td>Mention users</td>
<td><em>pending</em></td>
</tr>
<tr>
<td>Get contact info</td>
<td></td>
</tr>
</tbody>
</table>
<p>Something missing? Make an issue and let us know!</p>
<h2>Links</h2>
<ul>
<li><a href="https://pedroslopez.me/whatsapp-web.js">Documentation</a> <em>(preview)</em></li>
<li><a href="https://github.com/pedroslopez/whatsapp-web.js">GitHub</a></li>
</ul>
<h2>Contributing</h2>
<p>Pull requests are welcome! If you see something you'd like to add, please do. For drastic changes, please open an issue first.</p>
</article>
<div class="symbol-index">
<section>