mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update README.md
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
``` javascript
|
``` javascript
|
||||||
const WhatsAppWeb = require('baileys')
|
const WhatsAppWeb = require('baileys')
|
||||||
```
|
```
|
||||||
|
|
||||||
## Connecting
|
## Connecting
|
||||||
``` javascript
|
``` javascript
|
||||||
const client = new WhatsAppWeb()
|
const client = new WhatsAppWeb()
|
||||||
@@ -170,7 +171,8 @@ It's super simple
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
- Tested formats: png, jpeg, webp (sticker), mp4, ogg
|
- Tested formats: png, jpeg, webp (sticker), mp4, ogg
|
||||||
`options` is a JSON object, providing some information about the message. It can have the following __optional__ values:
|
|
||||||
|
The last parameter when sending messages is `info`, a JSON object, providing some information about the message. It can have the following __optional__ values:
|
||||||
``` javascript
|
``` javascript
|
||||||
info = {
|
info = {
|
||||||
caption: "hello there!", // (for media messages) the caption to send with the media (cannot be sent with stickers though)
|
caption: "hello there!", // (for media messages) the caption to send with the media (cannot be sent with stickers though)
|
||||||
|
|||||||
Reference in New Issue
Block a user