Compare commits

...
3 Commits
Author SHA1 Message Date
allburov 966b35094f Bump version to 2023.5.3
Release / deploy-docker (push) Waiting to run
2023-05-03 09:17:44 +07:00
allburov 65607bf3b3 Handle extendedTextMessage
Fix #90
2023-05-03 09:17:24 +07:00
allburov 5fcba7a7db [core][docs] Remove the icon from headers 2023-04-27 18:37:05 +07:00
3 changed files with 13 additions and 5 deletions

No files matched your search

@@ -20,7 +20,9 @@ If you have any problems with one engine - try another!
{{< alert icon="👉" text="API responses and webhook payloads may differ significantly! We do our best to keep requests body stable between engines." />}}
## WEBJS ![](/images/versions/core.png)
All engines are available in Core version ![](/images/versions/core.png)
## WEBJS
A WhatsApp API client that connects through the WhatsApp Web browser app.
It uses Puppeteer to run a real instance of Whatsapp Web to avoid getting blocked.
@@ -30,7 +32,7 @@ It uses Puppeteer to run a real instance of Whatsapp Web to avoid getting blocke
- `WHATSAPP_DEFAULT_ENGINE=WEBJS`
- https://github.com/pedroslopez/whatsapp-web.js
## NOWEB ![](/images/versions/core.png)
## NOWEB
**NOWEB** engine does not require a browser to work with WhatsApp Web, it does so directly using a WebSocket.
Not running Chromium saves you CPU and Memory, so you can run more instances on a single server!
@@ -42,7 +44,7 @@ Not running Chromium saves you CPU and Memory, so you can run more instances on
- `WHATSAPP_DEFAULT_ENGINE=NOWEB`
- https://github.com/WhiskeySockets/Baileys
## VENOM ![](/images/versions/core.png)
## VENOM
It's a high-performance system developed with JavaScript to create a bot for WhatsApp
+7 -1
View File
@@ -377,12 +377,18 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
}
const from = message.key.remoteJid
const id = buildMessageId(message.key)
let body = message.message.conversation
if (!body){
// Some of the messages have no conversation, but instead have text in extendedTextMessage
// https://github.com/devlikeapro/whatsapp-http-api/issues/90
body = message.message.extendedTextMessage?.text
}
return Promise.resolve({
id: id,
timestamp: message.messageTimestamp,
from: toCusFormat(from),
fromMe: message.key.fromMe,
body: message.message.conversation,
body: body,
to: toCusFormat(to),
participant: toCusFormat(participant),
// @ts-ignore
+1 -1
View File
@@ -28,7 +28,7 @@ export function getWAHAVersion(): WAHAVersion {
}
export const VERSION = {
version: "2023.4.27",
version: "2023.5.3",
tier: getWAHAVersion(),
browser: getBrowserExecutablePath()
}