# astro-web.js

> Library for interacting with the WhatsApp Web API

Latest version **1.0.7** (published 2022-04-08) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install astro-web.js
pnpm add astro-web.js
yarn add astro-web.js
bun add astro-web.js
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2022-04-08 |
| First published | 2022-04-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 7 |
| Unpacked size | 213 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | astro-team |
| Maintainers | astroincz |
| Keywords | whatsapp, astro-web.js, api, bot, client, node |

## Links

- npm: https://www.npmjs.com/package/astro-web.js
- Repository: https://github.com/astroincz/astro-web.js
- Homepage: https://github.com/astroincz/astro-web.js#readme
- Issues: https://github.com/astroincz/astro-web.js/issues
- npm.io page: https://npm.io/package/astro-web.js

## Dependencies (7)

- [jsqr](https://npm.io/package/jsqr.md) ^1.3.1
- [mime](https://npm.io/package/mime.md) ^3.0.0
- [puppeteer](https://npm.io/package/puppeteer.md) ^13.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.5
- [node-webpmux](https://npm.io/package/node-webpmux.md) ^3.1.0
- [fluent-ffmpeg](https://npm.io/package/fluent-ffmpeg.md) ^2.1.2
- [@pedroslopez/moduleraid](https://npm.io/package/@pedroslopez/moduleraid.md) ^5.0.2

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2022-04-08
- 1.0.6 — 2022-04-08
- 1.0.5 — 2022-04-08
- 1.0.4 — 2022-04-08
- 1.0.3 — 2022-04-08
- 1.0.2 — 2022-04-08
- 1.0.1 — 2022-04-08
- 1.0.0 — 2022-04-08

## README

## Installation

multi-device source.
stable

The module is now available on npm! `npm i astro-web.js`

## errors
if you get any errors or have a issue 
email use at astroincc@gmail.com

## Example usage

```js
const { Client } = require('astro-web.js');
const fs = require('fs');
const { Client , LocalAuth} = require('astro-web.js');
const qrcode = require('qrcode-terminal');
 const client = new Client(
    { puppeteer: {  headless: true,  args: ['--no-sandbox']},
    authStrategy: new LocalAuth({ clientId: 'astro' }) 
          
          });

client.initialize();
//qr comes out
client.on('qr', qr => {
    qrcode.generate(qr, {small: true});
});
// if qr was successful 
client.on('authenticated', () => {
    console.log('AUTHENTICATED');
});
// your bot is now online
  
client.on('ready', () => {
    console.log(`bot connected`);
});
```

## Supported features

| Feature  | Status |
| ------------- | ------------- |
| Multi Device  | ✅  |
| Send messages  | ✅  |
| Receive messages  | ✅  |
| Send media (video)  | ✅ 
| Send stickers | ✅ |
| Receive media (images/audio/video/documents)  | ✅  |
| Message replies | ✅ |
| Join groups by invite  | ✅ |
| Get invite for group  | ✅ |
| send sticker | ✅  |
| Add group participants  | ✅  |
| Kick group participants  | ✅  |
| Promote/demote group participants | ✅ |
| Mention users | ✅ |
| Mute/unmute chats | ✅ |
| Block/unblock contacts | ✅ |
| Get contact info | ✅ |
| Get profile pictures | ✅ |
| Set user status message | ✅ |

## thanks to
@adiwajshing/baileys
@open-wa/wa-automate
@Wwebjs
@vemon-bot
@astro-team
example : https://github.com/astroincz/astro-web.js-example

---
_Source: https://npm.io/package/astro-web.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
