File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
4446await 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
181190await client .chats .updatePresence ({
182191 number: " 5511999999999" ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments