Skip to content

Commit 23c46c3

Browse files
sync: 0.7.0 from main (759eb02deab38d02dc6b4a0156c30eec9b440e68)
1 parent 89eaae3 commit 23c46c3

34 files changed

Lines changed: 2031 additions & 429 deletions

File tree

.env.example

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GLOBAL_API_KEY=429683C4C977415CAAFCCE10F7D57E11
99

1010
WADEBUG=DEBUG
1111
LOGTYPE=console
12-
WEBHOOKFILES=true
12+
WEBHOOK_FILES=true
1313

1414
CONNECT_ON_STARTUP=true
1515

@@ -20,6 +20,15 @@ AMQP_GLOBAL_ENABLED=false
2020

2121
WEBHOOK_URL=https://webhook.site/2e6af2fa-6b04-497f-b4a1-13a905728d83
2222

23+
# Proxy Configuration
24+
# PROXY_PROTOCOL can be http, https or socks5. If omitted, it is inferred from
25+
# the port (1080/2080/42000-43000 → socks5; otherwise http).
26+
# PROXY_PROTOCOL=http
27+
# PROXY_HOST=proxy.example.com
28+
# PROXY_PORT=8080
29+
# PROXY_USERNAME=user
30+
# PROXY_PASSWORD=secret
31+
2332
# Minio Configuration
2433
MINIO_ENABLED=true
2534
MINIO_ENDPOINT=localhost:9000

.github/ISSUE_TEMPLATE/-en--bug-report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
The issue tracker is only for reporting bugs and feature requests.
1313
For support questions, please visit:
1414
- [Community](https://evolutionfoundation.com.br/community)
15-
- [WhatsApp Support](https://wa.me/553175038350)
15+
- [WhatsApp Support](https://wa.me/553196219989)
1616
<br/>
1717
1818
**DO NOT OPEN AN ISSUE FOR GENERAL SUPPORT QUESTIONS.**

.github/ISSUE_TEMPLATE/-pt--reportar-bug.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
O rastreador de problemas é apenas para relatar bugs e solicitações de recursos.
1313
Para perguntas de suporte, acesse:
1414
- [Comunidade](https://evolutionfoundation.com.br/community)
15-
- [WhatsApp Suporte](https://wa.me/553175038350)
15+
- [WhatsApp Suporte](https://wa.me/553196219989)
1616
<br/>
1717
1818
**NÃO ABRA UM PROBLEMA PARA PERGUNTAS GERAIS DE SUPORTE.**

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Evolution GO - Changelog
22

3+
## v0.7.0
4+
5+
**Docker:** `evoapicloud/evolution-go:0.7.0`
6+
7+
### 🆕 New Features
8+
- **Multi-platform interactive messages** — Buttons, lists and carousel working on Android, iOS and WhatsApp Web/Desktop
9+
- **SendButton**: removed `ViewOnceMessage` wrapper that blocked rendering on iOS and WhatsApp Web; `Footer` and `Header` are now conditional
10+
- **SendList**: migrated from `InteractiveMessage`/`NativeFlowMessage` to legacy `ListMessage` (native protobuf) for broad compatibility
11+
- **SendCarousel**: new endpoint `POST /send/carousel` with cards (image, text, footer, buttons) and automatic JPEG thumbnail generation for instant image loading
12+
- `whatsmeow-lib`: added `biz` node for `InteractiveMessage` and pinned `product_list` type on the `biz` node for `ListMessage`
13+
- **Base64 media support on `/send/media`** — The `url` field on `POST /send/media` now also accepts base64-encoded media. When the value does not start with `http://` or `https://`, it is treated as base64 and decoded; reuses the existing `SendMediaFile` flow
14+
- **WhatsApp status endpoints** — new `POST /send/status/text` and `POST /send/status/media` publish text/image/video status to `status@broadcast`. Media endpoint supports both JSON (with URL) and multipart/form-data (file upload). Thanks @Eduardo-gato (#15)
15+
- **Webhook routing for GROUP / NEWSLETTER** — when the primary `MESSAGE` / `SEND_MESSAGE` / `READ_RECEIPT` subscription is absent, events from `@g.us` chats are forwarded to `GROUP` subscribers and events from `@newsletter` chats to `NEWSLETTER` subscribers. Thanks @oismaelash (#18)
16+
17+
### 🔧 Improvements
18+
- **Proxy protocol** — new optional `protocol` field (and `PROXY_PROTOCOL` env) supporting `http`, `https`, `socks5`. Replaces the hardcoded SOCKS5 dialer with `client.SetProxyAddress`, fixing HTTP-proxy QR pairing (#12). Thanks @TBDevMaster (#13)
19+
- **WhatsApp Web version cache**`fetchWhatsAppWebVersion` now caches the result for 1 hour with a mutex instead of issuing one request per instance startup. Thanks @VitorS0uza (#24)
20+
- **Manager flicker fix** — instance page no longer replaces the list with skeleton cards on every 5s polling cycle (`hasLoaded` flag). Thanks @TBDevMaster (#14), closes #11
21+
- **`WEBHOOKFILES``WEBHOOK_FILES`**`.env.example`, docker-compose and docs aligned with the env var the runtime actually reads. Thanks @VitorS0uza (#22)
22+
- **Dependency cleanup** — removed unused `github.com/EvolutionAPI/evo-gate` from `go.mod`
23+
- **whatsmeow-lib** bumped to `0923702fb`
24+
- **Telemetry removed** — dropped legacy `pkg/telemetry`
25+
26+
### 🐛 Bug Fixes
27+
- **`/message/edit`** — was silently ignored because the edit payload used `Conversation` while the original message was sent as `ExtendedTextMessage`. WhatsApp requires matching types; now the edit uses `ExtendedTextMessage` and the response returns the actual server timestamp instead of the zero value. Closes #16
28+
- **Sticker upload to S3/MinIO** — when `webp.Decode` or `png.Encode` failed, the whole media pipeline aborted and the sticker was lost from the webhook. Now we log a warning and keep the raw `.webp` bytes so the sticker still reaches the bucket. Closes #5
29+
- **Multipart `/send/media`** — the binary-upload branch silently dropped `mentionAll`, `mentionedJid` and `quoted`. These fields now parse from the form (with `mentionedJid` accepting repeated or comma-separated values) and reach the send service. Closes #2
30+
31+
### ⚠️ Breaking changes
32+
- **Proxy** — previously all proxies were forced through SOCKS5. If you run SOCKS5 on a non-standard port (anything outside 1080/2080/42000-43000), set `PROXY_PROTOCOL=socks5` in the env or pass `"protocol": "socks5"` in the proxy body explicitly — otherwise the new protocol inference will fall back to HTTP.
33+
34+
### 📝 Docs
35+
- **README** — updated WhatsApp support number and issue templates
36+
- **Interactive messages guide** — new `docs/wiki/guias-api/api-interactive.md`
37+
- **Proxy docs** — environment variables, configuration guide and API reference updated with the new `protocol` field
38+
339
## v0.6.1
440

541
### 🆕 New Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ evolution-go/
168168
| Website | [evolutionfoundation.com.br](https://evolutionfoundation.com.br/) |
169169
| Documentation | [docs.evolutionfoundation.com.br](https://docs.evolutionfoundation.com.br/) |
170170
| Community | [evolutionfoundation.com.br/community](https://evolutionfoundation.com.br/community) |
171-
| WhatsApp Support | [+55 31 7503-8350](https://wa.me/553175038350) |
171+
| WhatsApp Support | [+55 31 9621-9989](https://wa.me/553196219989) |
172172
| GitHub Issues | [evolution-go/issues](https://github.com/EvolutionAPI/evolution-go/issues) |
173173

174174
## Hosting

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.1
1+
0.7.0

cmd/evolution-go/main.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ import (
5959
server_handler "github.com/EvolutionAPI/evolution-go/pkg/server/handler"
6060
storage_interfaces "github.com/EvolutionAPI/evolution-go/pkg/storage/interfaces"
6161
minio_storage "github.com/EvolutionAPI/evolution-go/pkg/storage/minio"
62-
"github.com/EvolutionAPI/evolution-go/pkg/telemetry"
6362
user_handler "github.com/EvolutionAPI/evolution-go/pkg/user/handler"
6463
user_service "github.com/EvolutionAPI/evolution-go/pkg/user/service"
6564
whatsmeow_service "github.com/EvolutionAPI/evolution-go/pkg/whatsmeow/service"
@@ -200,8 +199,6 @@ func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.C
200199
// NOVO: PollHandler usando PollService já inicializado no whatsmeowService (evita dupla inicialização)
201200
pollHandler := poll_handler.NewPollHandler(whatsmeowService.GetPollService(), loggerWrapper)
202201

203-
telemetry := telemetry.NewTelemetryService()
204-
205202
r := gin.Default()
206203

207204
// CORS middleware — must be before everything else
@@ -218,8 +215,6 @@ func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.C
218215
c.Next()
219216
})
220217

221-
r.Use(telemetry.TelemetryMiddleware())
222-
223218
r.Use(core.GateMiddleware(runtimeCtx))
224219

225220
// License routes (always accessible, even without license)

docker/examples/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ LOG_COMPRESS=true
5858
CONNECT_ON_STARTUP=false
5959

6060
# Enviar arquivos via webhook
61-
WEBHOOKFILES=true
61+
WEBHOOK_FILES=true
6262

6363
# Nome do sistema operacional
6464
OS_NAME=Linux

docker/examples/docker-compose.full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131

3232
# Conexão
3333
CONNECT_ON_STARTUP: "false"
34-
WEBHOOKFILES: "true"
34+
WEBHOOK_FILES: "true"
3535

3636
# Sistema
3737
OS_NAME: "Linux"

docker/examples/docker-compose.swarm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929

3030
# Conexão
3131
CONNECT_ON_STARTUP: "true"
32-
WEBHOOKFILES: "true"
32+
WEBHOOK_FILES: "true"
3333

3434
# Sistema
3535
OS_NAME: "Linux"

0 commit comments

Comments
 (0)