Skip to content

Commit dda5384

Browse files
committed
docs: improved
1 parent ab20151 commit dda5384

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ const client = new EvolutionClient({
4141
### Sending a Text Message
4242

4343
```ts
44+
client.setInstance("my-instance-01");
45+
4446
await client.messages.sendText({
4547
number: "5511999999999",
4648
text: "Hello from the SDK!",
@@ -123,6 +125,12 @@ await client.instance.create({
123125
});
124126
```
125127

128+
#### Setting the default Instance
129+
130+
```ts
131+
await client.setInstance("InstanceName");
132+
```
133+
126134
#### Connect to Instance
127135

128136
```ts
@@ -177,6 +185,7 @@ const chats = await client.chats.findAll();
177185
#### Chat Actions
178186

179187
```ts
188+
client.setInstance("my-instance-01");
180189
// Update presence
181190
await client.chats.updatePresence({
182191
number: "5511999999999",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "evolution-api-sdk",
33
"private": false,
4-
"version": "0.6.0",
4+
"version": "0.6.1",
55
"description": "Unofficial SDK for the Evolution Whatsapp API v2",
66
"main": "lib/index.js",
77
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)