
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
@sdkwa/whatsapp-api-client
Advanced tools
Multi-messenger TypeScript SDK for WhatsApp and Telegram - Unified API for both platforms with dynamic messenger selection
A modern JavaScript/TypeScript SDK for integrating with multiple messenger platforms through the SDKWA HTTP API.
Supported Messengers:
Switch between messengers with a single parameter. All 40+ API methods work with both platforms.
npm install @sdkwa/whatsapp-api-client
⚠️ Before sending messages, scan QR code with your mobile app:
import SDKWA from "@sdkwa/whatsapp-api-client";
const sdkwa = new SDKWA({
idInstance: "YOUR_ID_INSTANCE",
apiTokenInstance: "YOUR_API_TOKEN_INSTANCE"
});
// Get QR code
const qrCode = await sdkwa.getQr();
console.log(qrCode.message); // base64 image - scan with WhatsApp/Telegram app
// Check authorization
const state = await sdkwa.getStateInstance();
console.log(state.stateInstance); // "authorized" when ready
📱 WhatsApp: Settings → Linked Devices → Link a Device
📱 Telegram: Settings → Devices → Link Desktop Device
// Send to WhatsApp (default)
await sdkwa.sendMessage({
chatId: "712345678989@c.us",
message: "Hello WhatsApp!"
});
// Send to Telegram (override)
await sdkwa.sendMessage({
chatId: "@username",
message: "Hello Telegram!"
}, 'telegram');
import express from "express";
const app = express();
app.use(express.json());
sdkwa.webhookHandler.onIncomingMessageText((data) => {
console.log("Received:", data);
});
app.post("/webhook", sdkwa.webhookHandler.webhookHandler());
app.listen(3000);
// Set default messenger
const sdkwa = new SDKWA({
idInstance: "YOUR_ID",
apiTokenInstance: "YOUR_TOKEN",
messenger: "whatsapp" // or "telegram"
});
// Use default
await sdkwa.getSettings();
// Override per call
await sdkwa.getSettings('telegram');
await sdkwa.sendMessage(params, 'telegram');
All 40+ methods support both messengers: Account, Messaging, Files, Groups, Contacts, Notifications, etc.
// 1. Send confirmation code
await sdkwa.sendConfirmationCode({ phoneNumber: 712345678989 });
// 2. Sign in with code
await sdkwa.signInWithConfirmationCode({ code: "received_code" });
// 3. Create app
await sdkwa.createApp({
title: "My App",
shortName: "myapp",
url: "https://sdkwa.pro",
description: "My app"
});
examples/setupAccount.ts - QR code authorizationexamples/telegramCreateApp.ts - Telegram app creationexamples/dynamicMessenger.ts - Switching messengersMIT
FAQs
Multi-messenger TypeScript SDK for WhatsApp and Telegram - Unified API for both platforms with dynamic messenger selection
We found that @sdkwa/whatsapp-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.