
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@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
The npm package @sdkwa/whatsapp-api-client receives a total of 1 weekly downloads. As such, @sdkwa/whatsapp-api-client popularity was classified as not popular.
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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.