Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masb0ymas/wabot-md
Wabot multi device
https://github.com/masb0ymas/wabot-md
Last synced: 11 days ago
JSON representation
Wabot multi device
- Host: GitHub
- URL: https://github.com/masb0ymas/wabot-md
- Owner: masb0ymas
- License: mit
- Created: 2023-08-22T07:43:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-22T08:26:57.000Z (over 1 year ago)
- Last Synced: 2024-11-23T19:20:50.862Z (29 days ago)
- Language: TypeScript
- Size: 70.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Wabot Multi Device
## Installation
install using npm
```sh
npm install wabot-md
```install using yarn
```sh
yarn add wabot-md
```install using pnpm
```sh
pnpm add wabot-md
```## Using library
Using ES6
```ts
import * as whatsapp from 'wabot-md'
```Using CommonJS
```ts
const whatsapp = required('wabot-md')
```## Example Using
```ts
import * as whatsapp from 'wabot-md'const session = await whatsapp.startSession('instance123')
await whatsapp.sendTextMessage({
sessionId: "xxxxxx", // session ID
to: "6281234567890", // always add country code (ex: 62)
text: "Hi There, This is Message from Server!", // message you want to send
})
```