🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/whatsapp

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/whatsapp

Meta WhatsApp Business Cloud API — send text, template, media and document messages, mark messages as read, and resolve media IDs. Uses the encrypted credential vault.

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@robinpath/whatsapp

WhatsApp module for RobinPath.

Category Functions Auth License

Why use this module?

The whatsapp module lets you:

  • Send a text message.
  • Send a pre-approved template message.
  • Send an image message.
  • Send a document message.
  • Send a location message.

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/whatsapp

Quick Start

1. Set up credentials

whatsapp.setCredentials "EAABxxx" "1234567890"

2. Send a text message.

whatsapp.sendText "+1234567890" "Hello from RobinPath!"

Available Functions

FunctionDescription
whatsapp.setCredentialsSet WhatsApp Cloud API credentials.
whatsapp.sendTextSend a text message.
whatsapp.sendTemplateSend a pre-approved template message.
whatsapp.sendImageSend an image message.
whatsapp.sendDocumentSend a document message.
whatsapp.sendLocationSend a location message.
whatsapp.sendContactSend contact card(s).
whatsapp.markReadMark a message as read.
whatsapp.getProfileGet the WhatsApp Business profile.
whatsapp.updateProfileUpdate the WhatsApp Business profile.

Examples

Send a text message.

whatsapp.sendText "+1234567890" "Hello from RobinPath!"

Send a pre-approved template message.

whatsapp.sendTemplate "+1234567890" "hello_world"

Send an image message.

whatsapp.sendImage "+1234567890" "https://example.com/photo.jpg" "Check this out"

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/whatsapp";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  whatsapp.setCredentials "EAABxxx" "1234567890"
  whatsapp.sendText "+1234567890" "Hello from RobinPath!"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

whatsapp

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts