@solufy/evolution-sdk
v0.1.1
Published
Unofficial SDK for the Evolution Whatsapp API v2
Downloads
88
Maintainers
Readme
Installation
npm install @solufy/evolution-sdk
// or
yarn add @solufy/evolution-sdk
// or
pnpm add @solufy/evolution-sdk
Getting Started
import { EvolutionClient } from "@solufy/evolution-sdk"
// const { EvolutionClient } = require("@solufy/evolution-sdk")
const cccccccccc = new EvolutionClient({
serverUrl: "Your server url",
instance: "Your instance",
token: "Global api key or instance token"
})
Features
Check numbers
client.chats.check("551199999999", "552299999999")
Find chats and groups
client.chats.findAll() client.groups.findAll() client.groups.findByJid("[email protected]") client.groups.findByInviteCode("0000000000000000000000")
Send messages
There are available these types of messages: audio, contact, document, image, location, poll, sticker, text, video and voice.
client.messages.sendText({ number: "+551199999999", text: "Hi!", delay: 1000, })
API Documentation
Check the official API documentation for more information about their service.
Contributing
Feel free to contribute with suggestions or bug reports at our GitHub repository.