Skip to content

Commit 45e03d8

Browse files
committed
Merge branch 'release/1.6.1'
2 parents 3545b80 + 3e358e5 commit 45e03d8

33 files changed

+661
-168
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: "[EN] Bug report"
3+
about: Create a report to help us improve
4+
title: "[EN][BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
### Title: [Brief Description of the Bug]
11+
12+
#### Description:
13+
Describe in detail the problem you encountered. Include any relevant context that may help understand the origin of the bug.
14+
15+
#### Steps to Reproduce:
16+
1. List the steps necessary to reproduce the problem.
17+
2. Try to be as specific as possible.
18+
3. If the problem occurs in a specific scenario, describe it here.
19+
20+
#### Expected Behavior:
21+
Describe what you expected to happen when following the steps above.
22+
23+
#### Current Behavior:
24+
Explain what actually happens when you follow the steps above.
25+
26+
#### Screenshots/Videos:
27+
If possible, add screenshots or videos illustrating the problem. This can be extremely helpful in understanding the issue.
28+
29+
#### Environment:
30+
- **Server:** [e.g., Ubuntu 18.04]
31+
- **API Version:** [e.g., 1.5.4]
32+
- **Other Hardware/Software Specifications:** [e.g., CPU, GPU]
33+
34+
#### Submitting Logs:
35+
Please attach logs that may be related to the problem. If the logs contain sensitive information, consider sending them privately to one of the project maintainers.
36+
37+
#### Additional Notes:
38+
Include here any other information that you think might be useful in understanding or resolving the bug.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: "[EN] Feature request"
3+
about: Suggest an idea for the API
4+
title: "[EN][FEAT]"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
### Title: [Brief Description of Feature Request]
11+
12+
#### Detailed Description:
13+
Clearly and in detail, describe the functionality you wish to be implemented. Explain how this fits into the context of the project.
14+
15+
#### Rationale:
16+
Explain why this functionality would be useful for the project. This helps in understanding the importance and priority of the request.
17+
18+
#### Usage Examples:
19+
Provide specific examples of how this feature could be used. This can include scenarios or use cases where the feature would be particularly beneficial.
20+
21+
#### Possible Implementations:
22+
If you have ideas on how this feature might be implemented, please share them here. This is not mandatory but can be helpful for the development team.
23+
24+
#### Impact on the Project:
25+
Discuss how this new feature could impact other parts of the project, if applicable.
26+
27+
#### Additional Notes:
28+
Any other information you believe is relevant to your request.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: "[PT] Reportar bug"
3+
about: Reportar um problema
4+
title: "[PT][BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
### Título: [Breve Descrição do Bug]
11+
12+
#### Descrição:
13+
Descreva detalhadamente o problema que você encontrou. Inclua qualquer contexto relevante que possa ajudar a entender a origem do bug.
14+
15+
#### Passos para Reproduzir:
16+
1. Liste os passos necessários para reproduzir o problema.
17+
2. Tente ser o mais específico possível.
18+
3. Se o problema ocorrer em um cenário específico, descreva-o aqui.
19+
20+
#### Comportamento Esperado:
21+
Descreva o que você esperava que acontecesse quando seguisse os passos acima.
22+
23+
#### Comportamento Atual:
24+
Explique o que realmente acontece quando você segue os passos acima.
25+
26+
#### Capturas de Tela/Vídeos:
27+
Se possível, adicione capturas de tela ou vídeos que ilustrem o problema. Isso pode ser extremamente útil para entender o problema.
28+
29+
#### Ambiente:
30+
- **Servidor:** [ex: Ubuntu 18.04]
31+
- **Versão da API:** [ex: 1.5.4]
32+
- **Outras Especificações de Hardware/Software:** [ex: CPU, GPU]
33+
34+
#### Envio de Logs:
35+
Por favor, anexe os logs que possam estar relacionados ao problema. Se os logs contiverem informações sensíveis, considere enviá-los de forma privada para um dos mantenedores do projeto.
36+
37+
#### Notas Adicionais:
38+
Inclua aqui qualquer outra informação que você ache que possa ser útil para entender ou resolver o bug.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: "[PT] Solicitar recurso"
3+
about: Sugira novos recursos para a API
4+
title: "[PT][FEAT]"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
### Título: [Breve Descrição da Solicitação de Recurso]
11+
12+
#### Descrição Detalhada:
13+
Descreva claramente e em detalhes a funcionalidade que você deseja que seja implementada. Explique como isso se encaixa no contexto do projeto.
14+
15+
#### Racional:
16+
Explique por que essa funcionalidade seria útil para o projeto. Isso ajuda a entender a importância e a prioridade da solicitação.
17+
18+
#### Exemplos de Uso:
19+
Forneça exemplos específicos de como essa funcionalidade poderia ser utilizada. Isso pode incluir cenários ou casos de uso onde a funcionalidade seria particularmente benéfica.
20+
21+
#### Possíveis Implementações:
22+
Se você tem ideias sobre como essa funcionalidade pode ser implementada, por favor, compartilhe-as aqui. Isso não é obrigatório, mas pode ser útil para a equipe de desenvolvimento.
23+
24+
#### Impacto no Projeto:
25+
Discuta como essa nova funcionalidade poderia impactar outras partes do projeto, se aplicável.
26+
27+
#### Notas Adicionais:
28+
Qualquer outra informação que você acredita ser relevante para a sua solicitação.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ docker-compose.yaml
3939
/test/
4040
/src/env.yml
4141
/store
42+
*.env
4243

4344
/temp/*
4445

CHANGELOG.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
1-
# 1.6.1 (develop)
1+
# 1.6.1 (2023-12-22 11:43)
22

33
### Fixed
44

55
* Fixed Lid Messages
6+
* Fixed sending variables to typebot
7+
* Fixed sending variables from typebot
8+
* Correction sending s3/minio media to chatwoot and typebot
9+
* Fixed the problem with typebot closing at the end of the flow, now this is optional with the TYPEBOT_KEEP_OPEN variable
10+
* Fixed chatwoot Bold, Italic and Underline formatting using Regex
11+
* Added the sign_delimiter property to the Chatwoot configuration, allowing you to set a different delimiter for the signature. Default when not defined \n
12+
* Include instance Id field in the instance configuration
13+
* Fixed the pairing code
14+
* Adjusts in typebot
15+
* Fix the problem when disconnecting the instance and connecting again using mongodb
16+
* Options to disable docs and manager
17+
* When deleting a message in whatsapp, delete the message in chatwoot too
18+
619

720
# 1.6.0 (2023-12-12 17:24)
821

922
### Feature
23+
1024
* Added AWS SQS Integration
1125
* Added support for new typebot API
1226
* Added endpoint sendPresence
@@ -24,7 +38,6 @@
2438
* Fix workaround to manage param data as an array in mongodb
2539
* Removed await from webhook when sending a message
2640
* Update typebot.service.ts - element.underline change ~ for *
27-
* Adjusts in proxy
2841
* Removed api restart on receiving an error
2942
* Fixes in mongodb and chatwoot
3043
* Adjusted return from queries in mongodb
@@ -36,8 +49,8 @@
3649

3750
### Integrations
3851

39-
- Chatwoot: v3.3.1
40-
- Typebot: v2.20.0
52+
* Chatwoot: v3.3.1
53+
* Typebot: v2.20.0
4154

4255
# 1.5.4 (2023-10-09 20:43)
4356

@@ -116,9 +129,9 @@
116129

117130
### Integrations
118131

119-
- Chatwoot: v2.18.0 - v3.0.0
120-
- Typebot: v2.16.0
121-
- Manager Evolution API
132+
* Chatwoot: v2.18.0 - v3.0.0
133+
* Typebot: v2.16.0
134+
* Manager Evolution API
122135

123136
# 1.4.8 (2023-07-27 10:27)
124137

@@ -171,7 +184,7 @@
171184

172185
### Fixed
173186

174-
* Fixed validation is set settings
187+
* Fixed validation is set settings
175188
* Adjusts in group validations
176189
* Ajusts in sticker message to chatwoot
177190

@@ -206,7 +219,7 @@
206219

207220
### Integrations
208221

209-
- Chatwoot: v2.18.0 - v3.0.0 (Beta)
222+
* Chatwoot: v2.18.0 - v3.0.0 (Beta)
210223

211224
# 1.3.2 (2023-07-21 17:19)
212225

@@ -222,7 +235,7 @@
222235

223236
### Integrations
224237

225-
- Chatwoot: v2.18.0
238+
* Chatwoot: v2.18.0
226239

227240
# 1.3.1 (2023-07-20 07:48)
228241

@@ -232,7 +245,7 @@
232245

233246
### Integrations
234247

235-
- Chatwoot: v2.18.0
248+
* Chatwoot: v2.18.0
236249

237250
# 1.3.0 (2023-07-19 11:33)
238251

@@ -248,7 +261,7 @@
248261
* Translation set to default (english) in chatwoot
249262

250263
### Fixed
251-
264+
252265
* Fixed error to send message in large groups
253266
* Docker files adjusted
254267
* Fixed in the postman collection the webhookByEvent parameter by webhook_by_events
@@ -269,7 +282,7 @@
269282

270283
### Integrations
271284

272-
- Chatwoot: v2.18.0
285+
* Chatwoot: v2.18.0
273286

274287
# 1.2.2 (2023-07-15 09:36)
275288

@@ -280,7 +293,7 @@
280293

281294
### Integrations
282295

283-
- Chatwoot: v2.18.0
296+
* Chatwoot: v2.18.0
284297

285298
# 1.2.1 (2023-07-14 19:04)
286299

@@ -436,4 +449,4 @@
436449
* Sending the local webhook url as destination in the webhook data for webhook redirection
437450
* Startup modes, server or container
438451
* Server Mode works normally as everyone is used to
439-
* Container mode made to use one instance per container, when starting the application an instance is already created and the qrcode is generated and it starts sending webhook without having to call it manually, it only allows one instance at a time.
452+
* Container mode made to use one instance per container, when starting the application an instance is already created and the qrcode is generated and it starts sending webhook without having to call it manually, it only allows one instance at a time.

Docker/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ QRCODE_COLOR=#198754
107107

108108
# old | latest
109109
TYPEBOT_API_VERSION=latest
110+
TYPEBOT_KEEP_OPEN=false
110111

111112
# Defines an authentication type for the api
112113
# We recommend using the apikey because it will allow you to use a custom token,

Dockerfile

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:20.7.0-alpine
1+
FROM node:20.7.0-alpine AS builder
22

3-
LABEL version="1.6.0" description="Api to control whatsapp features through http requests."
3+
LABEL version="1.6.1" description="Api to control whatsapp features through http requests."
44
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
55
LABEL contact="[email protected]"
66

@@ -11,9 +11,19 @@ WORKDIR /evolution
1111

1212
COPY ./package.json .
1313

14+
RUN npm install
15+
16+
COPY . .
17+
18+
RUN npm run build
19+
20+
FROM node:20.7.0-alpine AS final
21+
1422
ENV TZ=America/Sao_Paulo
1523
ENV DOCKER_ENV=true
1624

25+
ENV SERVER_TYPE=http
26+
ENV SERVER_PORT=8080
1727
ENV SERVER_URL=http://localhost:8080
1828

1929
ENV CORS_ORIGIN=*
@@ -68,6 +78,8 @@ ENV WEBHOOK_GLOBAL_ENABLED=false
6878
ENV WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
6979

7080
ENV WEBHOOK_EVENTS_APPLICATION_STARTUP=false
81+
ENV WEBHOOK_EVENTS_INSTANCE_CREATE=false
82+
ENV WEBHOOK_EVENTS_INSTANCE_DELETE=false
7183
ENV WEBHOOK_EVENTS_QRCODE_UPDATED=true
7284
ENV WEBHOOK_EVENTS_MESSAGES_SET=true
7385
ENV WEBHOOK_EVENTS_MESSAGES_UPSERT=true
@@ -122,10 +134,8 @@ ENV AUTHENTICATION_INSTANCE_CHATWOOT_ACCOUNT_ID=1
122134
ENV AUTHENTICATION_INSTANCE_CHATWOOT_TOKEN=123456
123135
ENV AUTHENTICATION_INSTANCE_CHATWOOT_URL=<url>
124136

125-
RUN npm install
126-
127-
COPY . .
137+
WORKDIR /evolution
128138

129-
RUN npm run build
139+
COPY --from=builder /evolution .
130140

131141
CMD [ "node", "./dist/src/main.js" ]

docker-compose.yaml.example.dockerhub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.3'
33
services:
44
api:
55
container_name: evolution_api
6-
image: davidsongomes/evolution-api:latest
6+
image: atendai/evolution-api:latest
77
restart: always
88
ports:
99
- 8080:8080

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "evolution-api",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "Rest api for communication with WhatsApp",
55
"main": "./dist/src/main.js",
66
"scripts": {
@@ -46,7 +46,7 @@
4646
"@figuro/chatwoot-sdk": "^1.1.16",
4747
"@hapi/boom": "^10.0.1",
4848
"@sentry/node": "^7.59.2",
49-
"@whiskeysockets/baileys": "^6.5.0",
49+
"@whiskeysockets/baileys": "github:PurpShell/Baileys#combined",
5050
"amqplib": "^0.10.3",
5151
"aws-sdk": "^2.1499.0",
5252
"axios": "^1.3.5",
@@ -56,7 +56,7 @@
5656
"cross-env": "^7.0.3",
5757
"dayjs": "^1.11.7",
5858
"eventemitter2": "^6.4.9",
59-
"evolution-manager": "^0.4.4",
59+
"evolution-manager": "^0.4.11",
6060
"exiftool-vendored": "^22.0.0",
6161
"express": "^4.18.2",
6262
"express-async-errors": "^3.1.1",

0 commit comments

Comments
 (0)