[PR #1] [MERGED] feat: Implement Simple WhatsApp API #1

Closed
opened 2026-03-03 01:17:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Codegres-com/Simple-Whatsapp-API/pull/1
Author: @Codegres-com
Created: 9/30/2025
Status: Merged
Merged: 9/30/2025
Merged by: @Codegres-com

Base: mainHead: feat/simple-whatsapp-api


📝 Commits (1)

  • 843bb9f feat: Implement Simple WhatsApp API

📊 Changes

10 files changed (+2875 additions, -53 deletions)

View changed files

.gitignore (+8 -0)
📝 README.md (+122 -53)
package-lock.json (+2439 -0)
package.json (+28 -0)
src/controllers/authController.js (+42 -0)
src/controllers/messageController.js (+51 -0)
src/index.js (+27 -0)
src/middleware/authMiddleware.js (+18 -0)
src/routes/api.js (+19 -0)
src/services/whatsapp.js (+121 -0)

📄 Description

This commit introduces a complete Node.js application that provides a simple API for sending WhatsApp messages and attachments.

The API is built with Express.js and uses the whatsapp-web.js library to connect to a WhatsApp account.

Key Features:

  • Persistent session using LocalAuth to avoid repeated QR code scanning.
  • Endpoints to fetch the QR code as a string (/api/connect) or an image (/api/connect/image).
  • Endpoint to send text messages (/api/send-message).
  • Endpoint to send attachments from either a URL or a Base64 string (/api/send-attachment).
  • API key authentication for sending endpoints, configured via a .env file.
  • Clear error handling and JSON responses.
  • Comprehensive README.md with setup and usage instructions.

The code is structured by feature into controllers, services, routes, and middleware directories.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Codegres-com/Simple-Whatsapp-API/pull/1 **Author:** [@Codegres-com](https://github.com/Codegres-com) **Created:** 9/30/2025 **Status:** ✅ Merged **Merged:** 9/30/2025 **Merged by:** [@Codegres-com](https://github.com/Codegres-com) **Base:** `main` ← **Head:** `feat/simple-whatsapp-api` --- ### 📝 Commits (1) - [`843bb9f`](https://github.com/Codegres-com/Simple-Whatsapp-API/commit/843bb9f9e906fefa51cd392f02a98f2f64fa78b1) feat: Implement Simple WhatsApp API ### 📊 Changes **10 files changed** (+2875 additions, -53 deletions) <details> <summary>View changed files</summary> ➕ `.gitignore` (+8 -0) 📝 `README.md` (+122 -53) ➕ `package-lock.json` (+2439 -0) ➕ `package.json` (+28 -0) ➕ `src/controllers/authController.js` (+42 -0) ➕ `src/controllers/messageController.js` (+51 -0) ➕ `src/index.js` (+27 -0) ➕ `src/middleware/authMiddleware.js` (+18 -0) ➕ `src/routes/api.js` (+19 -0) ➕ `src/services/whatsapp.js` (+121 -0) </details> ### 📄 Description This commit introduces a complete Node.js application that provides a simple API for sending WhatsApp messages and attachments. The API is built with Express.js and uses the `whatsapp-web.js` library to connect to a WhatsApp account. Key Features: - Persistent session using LocalAuth to avoid repeated QR code scanning. - Endpoints to fetch the QR code as a string (`/api/connect`) or an image (`/api/connect/image`). - Endpoint to send text messages (`/api/send-message`). - Endpoint to send attachments from either a URL or a Base64 string (`/api/send-attachment`). - API key authentication for sending endpoints, configured via a `.env` file. - Clear error handling and JSON responses. - Comprehensive `README.md` with setup and usage instructions. The code is structured by feature into `controllers`, `services`, `routes`, and `middleware` directories. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:17:12 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Simple-Whatsapp-API#1
No description provided.