WhatsAppDLL 1.1.0

dotnet add package WhatsAppDLL --version 1.1.0
                    
NuGet\Install-Package WhatsAppDLL -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WhatsAppDLL" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WhatsAppDLL" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="WhatsAppDLL" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WhatsAppDLL --version 1.1.0
                    
#r "nuget: WhatsAppDLL, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WhatsAppDLL@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WhatsAppDLL&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=WhatsAppDLL&version=1.1.0
                    
Install as a Cake Tool

WhatsApp API Client for .NET

SDK para enviar mensajes mediante una API de WhatsApp desde aplicaciones desarrolladas en .NET.

Este paquete permite integrar fácilmente el envío de mensajes de WhatsApp desde aplicaciones como:

  • Windows Forms
  • WPF
  • Consolas
  • ASP.NET
  • Servicios backend

Instalación

Instalar el paquete desde NuGet:

Install-Package WhatsApp.Api.Client

o desde el Administrador de paquetes NuGet en Visual Studio.


Configuración

El SDK se conecta al endpoint de la API de WhatsApp:

http://69.48.202.253/send

Este endpoint recibe solicitudes POST con el siguiente formato:

{
  "clientId": "Jehudy",
  "number": "50672431147",
  "message": "Hola desde WhatsApp API!"
}

Ejemplo de uso

using WhatsApp.Api.Client;

var client = new WhatsAppClient();

await client.EnviarMensaje(
    "Jehudy",
    "50672431147",
    "Hola desde .NET"
);

Envío de mensajes a múltiples contactos

El SDK también permite enviar mensajes a varios números con un tiempo aleatorio entre cada envío.

List<string> numeros = new List<string>
{
    "50670000000",
    "50671111111",
    "50672222222"
};

var client = new WhatsAppClient();

var respuesta = await client.EnviarMensaje(
    "Jehudy",
    numeros,
    "Mensaje enviado desde .NET",
    3,
    10
);

Parámetros:

Parámetro Descripción
clientId Identificador del cliente en la API
numbers Lista de números de teléfono
message Mensaje a enviar
minDelaySeconds Tiempo mínimo entre mensajes
maxDelaySeconds Tiempo máximo entre mensajes

Respuesta de la API

La API retorna una respuesta similar a:

{
  "success": true,
  "clientId": "Jehudy",
  "number": "50670444758",
  "message": "Hola desde WhatsApp API!"
}

Manejo de errores

El SDK captura errores del servidor y retorna una respuesta con información del problema.

Ejemplo:

{
  "success": false,
  "error": "Cliente no registrado"
}

Características

  • Envío de mensajes de WhatsApp
  • Envío masivo con delays aleatorios
  • Manejo automático de errores
  • Integración sencilla con aplicaciones .NET

Requisitos

  • .NET 8 o superior
  • Conexión a la API de WhatsApp

Licencia

Este proyecto está licenciado bajo la Licencia MIT.


Autor

Jehudy Cajina

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 189 3/16/2026