Commit Graph

1788 Commits

Author SHA1 Message Date
Thélio Matheus
e47567b819 Split messages on double line breaks (\n\n) and implement typing delay in WhatsApp
This change modifies the Evolution Bot integration to:

- Split messages on double newline characters (\n\n) and send each part as a separate message in WhatsApp.
- Add a typing delay before sending messages to simulate a more natural, human-like typing experience.

These updates enhance user interaction by breaking long messages into manageable parts and making bot responses feel more conversational.
2024-10-10 17:12:59 -03:00
Davidson Gomes
c29d20ea40
Merge pull request #967 from joaosouz4dev/v2.0.0
fix: migration update after alter
2024-10-10 14:18:55 -03:00
João Victor Souza
e19ee05e9f fix: migration update after alter 2024-10-10 13:41:07 -03:00
Davidson Gomes
68ccfb0517
Merge pull request #959 from yousseefspires/add-contextinfo-findMessages
Add ContextInfo to return in FindMessages
2024-10-09 17:07:42 -03:00
Davidson Gomes
7cb5d10fc9
Merge pull request #957 from fmedeiros95/v2.0.0
Escutar a configuração do webhook para midias recebidas
2024-10-09 17:03:41 -03:00
Youssef
5fcdf5aeaf
Update channel.service.ts 2024-10-08 16:39:18 +01:00
Felipe Medeiros
7adab5c1c0 Escutar a configuração do webhook para midias recebidas 2024-10-07 19:14:21 -03:00
Davidson Gomes
f5f778ecbe feat: Added unreadMessages to chats 2024-10-07 13:45:19 -03:00
Davidson Gomes
f2bb01a640 Merge branch 'v2.0.0' of github.com:EvolutionAPI/evolution-api into v2.0.0 2024-10-07 13:37:56 -03:00
Davidson Gomes
2f1ba83546
Merge pull request #954 from jesus-chacon/features/unread_messages
Added unreadMessages to chats
2024-10-07 13:37:50 -03:00
Jesus
10aeeebb53 Fix and improve fetch chats 2024-10-07 18:03:27 +02:00
Jesus
96e1802148 Fix update message condition 2024-10-07 17:54:25 +02:00
Jesus
27dc49f2c3 Fix unread for chat creation 2024-10-07 17:41:43 +02:00
Jesus
edb3875b91 Added unreadMessages to chats 2024-10-07 17:39:00 +02:00
Davidson Gomes
ac3b18678e Merge branch 'v2.0.0' of github.com:EvolutionAPI/evolution-api into v2.0.0 2024-10-07 11:07:42 -03:00
Davidson Gomes
49edd174a9
Merge pull request #953 from fmedeiros95/v2.0.0
refactor: remove a função "offerCall" do controller sendMessage
2024-10-07 11:07:29 -03:00
Felipe Medeiros
4d33ad3aef
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0 2024-10-07 11:05:43 -03:00
Felipe Medeiros
3511082511 Merge branch 'v2.0.0' of https://github.com/fmedeiros95/evolution-api into v2.0.0 2024-10-07 11:05:20 -03:00
Felipe Medeiros
23abcbecd3 refactor: remove a função "offerCall" do controller sendMessage 2024-10-07 11:05:17 -03:00
Davidson Gomes
87fe8c2b3c Merge branch 'v2.0.0' of github.com:EvolutionAPI/evolution-api into v2.0.0 2024-10-07 11:02:13 -03:00
Davidson Gomes
eee43bb073
Merge pull request #952 from fmedeiros95/v2.0.0
Adiciona a função de fake call
2024-10-07 11:02:06 -03:00
Felipe Medeiros
51a3710b46
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0 2024-10-07 10:55:41 -03:00
Felipe Medeiros
0aa8150070 Update dependency: baileys
The package.json file was updated to use the latest version of the baileys dependency from the EvolutionAPI repository.
2024-10-07 10:55:21 -03:00
Felipe Medeiros
8e8a3db529 Merge branch 'v2.0.0' of https://github.com/fmedeiros95/evolution-api into v2.0.0 2024-10-07 10:49:55 -03:00
Felipe Medeiros
bcf59a2015 feat: adiciona controlador de chamadas
Adiciona o controlador de chamadas para oferecer chamadas falsas.

- Adiciona o arquivo `call.controller.ts` com a classe `CallController` que possui o método `offerCall` para oferecer chamadas falsas.
- Adiciona o arquivo `call.dto.ts` com as classes `Metadata` e `OfferCallDto` para definir os dados da chamada.
- Atualiza o arquivo `sendMessage.dto.ts` removendo a classe `OfferCallDto`.
- Atualiza o arquivo `whatsapp.baileys.service.ts` importando a classe `OfferCallDto` corretamente e atualizando o método `offerCall` para receber os parâmetros corretos.
- Adiciona o arquivo `call.router.ts` com a classe `CallRouter` para lidar com as rotas relacionadas a chamadas.
- Atualiza o arquivo `index.router.ts` para incluir as rotas relacionadas a chamadas.
2024-10-07 10:49:51 -03:00
Davidson Gomes
e66f877b4c fix: migrations 2024-10-07 10:49:26 -03:00
Davidson Gomes
aac8d446b4 changelog 2024-10-07 10:42:01 -03:00
Davidson Gomes
a0a62b997c
Merge pull request #951 from lucas-tomasi/patch-1
Fix duplicate file upload
2024-10-07 10:41:10 -03:00
Felipe Medeiros
070840d364
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0 2024-10-07 01:33:13 -03:00
Felipe Medeiros
0af00582f0 refactor: simplifica a lógica de terminação de chamada 2024-10-07 01:30:03 -03:00
Felipe Medeiros
b80b203670 feat: adiciona a funcionalidade de fake call 2024-10-07 01:13:02 -03:00
Davidson Gomes
29a1d99d05 fix: Fixed prefilledVariables in startTypebot 2024-10-06 20:05:14 -03:00
Lucas Tomasi
2e43683835
Fix duplicate file upload
Currently, we face an issue when a file with the same name is uploaded more than once:
1.⁠ ⁠It results in a unique key error in the database.
2.⁠ ⁠If the file is sent to S3, it overwrites the old file.

To resolve this problem, I've implemented a solution where we concatenate the message ID to the filename. This approach ensures uniqueness for each uploaded file, even if users upload files with identical names multiple times in a chat.


This change allows normal users to upload files with the same name multiple times in a chat without encountering errors or unintended file overwrites.
2024-10-06 15:42:17 -03:00
Davidson Gomes
ebbba7b7e9 version: 2.1.2 2024-10-06 10:10:00 -03:00
Davidson Gomes
c823f84c70 fix: status on send message 2024-10-06 10:04:02 -03:00
Davidson Gomes
0f7c2437bc fix: status on send message 2024-10-06 09:58:57 -03:00
Davidson Gomes
1f6473cfd5 version: 2.1.2 2024-10-06 09:47:42 -03:00
Davidson Gomes
db7428abd9
Merge pull request #949 from nestordavalos/v2.0.0
fix: Corrected audio file handling in WhatsApp
2024-10-06 09:27:27 -03:00
nestordavalos
59af93251d fix: Corregir manejo de archivo de audio en WhatsApp 2024-10-06 01:16:08 -03:00
nestordavalos
83567d6466 fix: Corrected audio file handling in WhatsApp
An error in the WhatsApp audio message handler has been fixed. The system now checks if the file has a valid buffer before sending it. Additionally, validation has been added to verify if the audio is a valid URL or Base64. If these conditions are not met, an error message is shown, and a BadRequestException is thrown.
2024-10-05 22:49:30 -04:00
Davidson Gomes
d7ddb99fb0 fix: Fixed bot fallback not working on integrations 2024-10-04 19:08:23 -03:00
Davidson Gomes
2d732c8071 fix: Does not search message without chatwoot Message Id for reply 2024-10-04 18:52:56 -03:00
Davidson Gomes
0d2125ddff fix: Does not search message without chatwoot Message Id for reply 2024-10-04 18:52:32 -03:00
Davidson Gomes
0791e1afe9 fix: Fixed bug when send message when dont have mentionsEveryOne on payload 2024-10-04 18:33:08 -03:00
Davidson Gomes
fcfa96d97d fix: Fixed bug when send message when dont have mentionsEveryOne on payload 2024-10-04 18:33:01 -03:00
Davidson Gomes
01ae55f02a fix: Fixed getBase64FromMediaMessage with convertToMp4 2024-10-04 18:27:25 -03:00
Davidson Gomes
97f633a69a fix: fixed issue of always creating a new label when saving chatwoot 2024-10-04 17:51:47 -03:00
Davidson Gomes
5c046d51c5 fix: fixed issue of always creating a new label when saving chatwoot 2024-10-04 17:51:32 -03:00
Davidson Gomes
487d8b93fb fix: startTypebot with startSession = true 2024-10-04 17:40:38 -03:00
Davidson Gomes
db065ab942 fix: send media message in chatwoot 2024-10-04 17:14:12 -03:00