Options
All
  • Public
  • Public/Protected
  • All
Menu

Retrieving Data

data reception functions

Here, to can be <phone Number>@c.us, <phone Number>-<groupId>@g.us, or <phone Number><groupId>@g.us.

To use these functions, it is necessary to initialize the bot.
Click here to learn more.

Summary

getAllContacts

Returns a list of contacts

const contacts = await client.getAllContacts();

checkNumber

Check if the number exists

const result = await client.checkNumber("<phone Number>@c.us");

loadAndGetAllMessagesInChat

Load all messages in chat by date

const result = await client.loadAndGetAllMessagesInChat("<phone Number>@c.us", "YYYY-MM-DD");

Generated using TypeDoc