Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/danielcardeenas/sulla
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcardeenas committed Apr 7, 2020
2 parents 6baa1cd + aad079f commit 14da2e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ function start(client) {

```javascript
// Init sales whatsapp bot
sulla.create('sales').then((salesBot) => {...});
sulla.create('sales').then((salesClient) => {...});

// Init support whatsapp bot
sulla.create('support').then((supportBot) => {...});
sulla.create('support').then((supportClient) => {...});
```

<br>
Expand Down Expand Up @@ -113,7 +113,7 @@ client.onMessage(async (message) => {
## Basic functions (usage)

Not every available function is listed, for further look, every function
available can be found in [here](/src/api/layers).
available can be found in [here](/src/api/layers) and [here](/src/lib/wapi/functions)

### Chatting

Expand Down Expand Up @@ -294,6 +294,9 @@ await client.clearChat(chatId);

// Delete message (last parameter: delete only locally)
await client.deleteMessage(chatId, message.id.toString(), false);

// Retrieve a number profile / check if contact is a valid whatsapp number
const profile = await client.getNumberProfile('[email protected]')
```

## Misc
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14da2e4

Please sign in to comment.