-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/danielcardeenas/sulla
- Loading branch information
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.