Commit Graph

1256 Commits

Author SHA1 Message Date
Felipe Augusto
aa18d13e21 (whatsapp.baileys.service.ts): adiciona novos campos de grupo na integração do WhatsApp
A inclusão dos campos isCommunity, isCommunityAnnounce e linkedParent na integração do WhatsApp permite que o serviço manipule informações adicionais sobre grupos. Isso melhora a funcionalidade e a flexibilidade do serviço, possibilitando um melhor gerenciamento e interação com grupos comunitários no WhatsApp.
2024-10-12 15:36:51 -03:00
Jesus
fa759f5da1 Fix lastMessage info for fetch chats query 2024-10-12 01:24:01 +02:00
Davidson Gomes
3af8f968c2 Add support for splitMessages and timePerChar in Integrations 2024-10-11 18:52:56 -03:00
Davidson Gomes
84df14ef93 changelog 2024-10-11 10:57:43 -03:00
Davidson Gomes
f5baced024
Merge pull request #971 from jesus-chacon/bugs/fix_fetch_chats_query
Fix fetch chats query
2024-10-11 10:56:07 -03:00
Davidson Gomes
0987fda327
Merge pull request #970 from jesus-chacon/bugs/mark_as_read_fromMe_and_groups
Mark as read from me and groups
2024-10-11 10:54:54 -03:00
Jesus
5b91648d5c Resolve read messages from groups and fromMe 2024-10-11 15:11:35 +02:00
Davidson Gomes
d50da79f22 feat: Add support for splitMessages and timePerChar in Integrations 2024-10-11 07:45:50 -03:00
Davidson Gomes
29e2cfaf96 feat: pusher event integration 2024-10-11 07:01:38 -03:00
Jesus
8ab8961e91 Fix fetch chats query 2024-10-11 08:19:51 +02:00
Davidson Gomes
f38f3e5ba5
Merge pull request #958 from jesus-chacon/features/last_message_in_chat
Added last message to fetch chats
2024-10-10 14:55:29 -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
Youssef
5fcdf5aeaf
Update channel.service.ts 2024-10-08 16:39:18 +01:00
Jesus
394c091810 Fix parse multiples messages updates and creates 2024-10-08 17:15:53 +02:00
Jesus
73e732bf24 Added last message to fetch chats 2024-10-08 12:51:34 +02:00
Jesus
c6ee463dae Improve update messages status 2024-10-08 12:51:10 +02:00
Jesus
cada7be1e5 Add last_message to fetchChats query 2024-10-08 08:47:08 +02:00
Jesus
eb456f6a88 Fix unreadMessages for fetchChats query 2024-10-08 08:08:33 +02:00
Felipe Medeiros
7adab5c1c0 Escutar a configuração do webhook para midias recebidas 2024-10-07 19:14:21 -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
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
Felipe Medeiros
51a3710b46
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0 2024-10-07 10:55:41 -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
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
0f7c2437bc fix: status on send message 2024-10-06 09:58:57 -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
0d2125ddff fix: Does not search message without chatwoot Message Id for reply 2024-10-04 18:52:32 -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
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
Davidson Gomes
373268c938 fix: send message to group without no cache (local or redis) 2024-10-04 16:23:09 -03:00
Davidson Gomes
fcc26f931e
Merge pull request #947 from oismaelash/v2.0.0
fix: send message to group without no cache (local or redis)
2024-10-04 16:19:34 -03:00
oismaelash
2037e78045 fix: send message to group without no cache (local or redis) 2024-10-04 16:05:49 -03:00
Davidson Gomes
161abf1d03 feat: send media with form-data 2024-10-04 14:55:21 -03:00
Davidson Gomes
ec2d7e349f feat: send media with form-data 2024-10-04 14:45:16 -03:00
Ismael Ash
7b41d333d7
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0 2024-10-04 06:18:31 -03:00
oismaelash
0a4b8d202a fix: transform any string on number to Lower Case, for not show reading id of undefined 2024-10-04 00:41:19 -03:00
Davidson Gomes
d1bc0e6150 fix: adjusts on prisma connections 2024-10-03 17:59:40 -03:00
Davidson Gomes
14d10c00ec chore: chatwoot verbose logs 2024-10-03 17:40:21 -03:00
Davidson Gomes
88c1830bf5 fix: timeout error on send status message 2024-10-03 17:22:52 -03:00
Davidson Gomes
1ded6c81ad chore: Set the maximum number of listeners that can be registered for events 2024-10-03 16:46:50 -03:00
Davidson Gomes
4fa3c50138 fix: mexico number 2024-10-03 16:36:28 -03:00
Ismael Ash
acad895c9d
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0 2024-10-03 15:09:53 -03:00
oismaelash
49327593a9 fix: buildkey function in hSet and hDelete 2024-10-03 14:44:46 -03:00
Davidson Gomes
0d8982395f fix: openai setting when send a message with chatwoot 2024-10-03 14:28:31 -03:00
Davidson Gomes
479dc12f28 Merge branch 'v2.0.0' of github.com:EvolutionAPI/evolution-api into v2.0.0 2024-10-03 14:24:29 -03:00
Davidson Gomes
182c5fc25e change version 2024-10-03 14:23:10 -03:00
Davidson Gomes
449a3b2252 Merge branch 'v2.0.0' of github.com:EvolutionAPI/evolution-api into v2.0.0 2024-10-03 08:33:31 -03:00
Davidson Gomes
efbb32ff0c fix: fetch status message 2024-10-03 08:32:45 -03:00
oismaelash
0ad330bdb3 add: hDelete on LocalCache 2024-10-02 15:15:12 -03:00
oismaelash
9a6d4a8e44 add: hGet and hSet on LocalCache 2024-10-02 14:55:34 -03:00
oismaelash
0b40583fa8 fix: environment variables with optional #1 2024-10-02 12:39:11 -03:00
oismaelash
fe4a439fde fix: environment variables with optional 2024-10-02 12:24:33 -03:00
oismaelash
5829762f91 update: docker with expose port and localcache hGet and hSet return null 2024-10-02 00:13:00 -03:00
Davidson Gomes
168c5f18d8
Merge pull request #926 from lopesfontana/v2.0.0-contacts_pushName
V2.0.0 contacts push name
2024-09-28 07:32:20 -03:00
Andre Fontana
510eaf1141 Adjust contact pushName. Not save when in message.upsert and the pushName is from the instance name 2024-09-27 15:03:17 -03:00
Andre Fontana
1e5d62c777 Adjust contact pushName. Not save when in message.upsert and the pushName is from the instance name 2024-09-27 15:01:35 -03:00
Andre Fontana
ca2387cc70 Adjust contact pushName. Not save when in message.upsert and the pushName is from the instance name 2024-09-27 14:49:58 -03:00
Davidson Gomes
0ff421121f
Merge pull request #918 from judsonjuniorr/fix/validate-message-before-sending-chatwoot
Fix/validate message before sending chatwoot
2024-09-27 14:02:58 -03:00
Davidson Gomes
8789f9bc97
Merge pull request #917 from judsonjuniorr/feat/sync-lost-messages-chatwoot
feat: Sync lost messages on chatwoot
2024-09-27 14:01:41 -03:00
Judson Cairo
f35f8dd7e0 feat: Update the cw message with the wpp time 2024-09-27 13:56:52 -03:00
Judson Cairo
f9726863ef feat: Update chatwoot source ID and status after sent 2024-09-27 09:40:18 -03:00
Judson Cairo
49ceb44102 fix: Validate if chatwoot connection is available 2024-09-25 13:07:20 -03:00
Judson Cairo
f54a00a07f fix: Validate if source id already exists in chatwoot
Check if message is already saved before sending it
2024-09-25 11:56:51 -03:00
Judson Cairo
e241cf4ee0 feat: Sync lost messages on chatwoot
Runs the sync method every 30min
2024-09-25 11:48:19 -03:00
Felipe Medeiros
59fac8bc4a
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0 2024-09-23 20:54:31 -03:00
Felipe Medeiros
68b5d8db4d feat: adiciona o status da mensagem no retorno da função "prepareMessage" 2024-09-22 17:48:16 -03:00
Davidson Gomes
ffac87835b fix: settings on dify, flowise and openai 2024-09-22 10:10:36 -03:00
Davidson Gomes
5ebebbf211 fix: chatbot integrations send media and links 2024-09-22 08:53:10 -03:00
OlaRonyMax
ae69eb0bce
Visualização única no ChatWoot
Permite receber imagens e vídeos de visualização unica direto no  ChatWoot
2024-09-21 16:26:35 -03:00
Davidson Gomes
cecbf59f46 clear console logs 2024-09-21 13:42:23 -03:00
Davidson Gomes
d3f90a7abd fix: chatwoot integration 2024-09-21 13:41:51 -03:00
Davidson Gomes
4e4caab970 fix: chatwoot integration 2024-09-21 12:34:40 -03:00
Felipe Medeiros
79170b8f01 refactor: padroniza as mensagens salvas no banco 2024-09-20 18:41:01 -03:00
Felipe Medeiros
92373812c1 refactor: simplifica função sendMessage no Baileys
- Remove lógica duplicada de salvar mensagens no banco de dados e upload de mídia para o S3
- Padroniza o retorno da função, utilizando "messageRaw"
- Simplifica a validação da instância
- Elimina a verificação de configuração do S3 para envio de mídias
2024-09-20 17:37:37 -03:00
Felipe Medeiros
0544d80cbd refactor: padroniza retorno da função sendMessage no Baileys
Ajusta o retorno da função "sendMessage" para usar a variável "messageRaw" em vez de "messageSent", garantindo consistência no retorno.
2024-09-20 17:32:39 -03:00
Davidson Gomes
76fe717076
Merge pull request #894 from judsonjuniorr/fix/typebot-settings-for-ignore-jid
Fix ignoreJids on typebot
2024-09-19 12:54:33 -03:00
Judson Cairo
aeb422b3f7 Fix ignoreJids on typebot 2024-09-18 21:47:37 -03:00
Judson Cairo
6b447c654f Fix instance validation condition 2024-09-16 10:36:27 -03:00
Judson Cairo
ff98d0724e Validate if instance exists before deleting it 2024-09-12 18:43:29 -03:00
Davidson Gomes
9a1d5664c9
Merge pull request #883 from vidz1979/debounce-message-break
Debounce message break
2024-09-12 15:08:52 -03:00
Davidson Gomes
f5fbf73139
Merge pull request #882 from FaelN1/v2.0.0
refactor: refatora tratamento do tipo de mensagem para interativas, de botão e de contato
2024-09-12 15:07:43 -03:00
Davidson Gomes
ade5f8d122
Merge pull request #880 from joaosouz4dev/v2.0.0
fix: clean instance without chatwoot
2024-09-12 15:04:53 -03:00
Junior Vidotti
83f87bc1c5 debounce message break 2024-09-11 21:58:46 +00:00
Rafael Nicolas Barbosa Moreira
55a3e59fa5 refactor: refatora tratamento do tipo de mensagem para interativas, de botão e de contato 2024-09-11 17:31:10 -03:00
Davidson Gomes
2947269c4e Merge branch 'v2.0.0' of github.com:EvolutionAPI/evolution-api into v2.0.0 2024-09-11 17:20:20 -03:00
Davidson Gomes
599560bdd7 fix: It is now possible to send images via the Evolution Channel 2024-09-11 17:20:07 -03:00
João Victor Souza
a84bc18dea
Merge branch 'EvolutionAPI:v2.0.0' into v2.0.0 2024-09-11 11:04:37 -03:00
João Victor Souza
918cf295ad fix: clean instance without chatwoot 2024-09-11 11:03:38 -03:00
Diego Marino
d183990732 Update getConversationMessage.ts 2024-09-10 22:55:03 -03:00
Davidson Gomes
bfcf99bba0 Merge branch 'v2.0.0' of github.com:EvolutionAPI/evolution-api into v2.0.0 2024-09-09 10:12:19 -03:00
Davidson Gomes
80ae86b298 fix: chatwoot screen 2024-09-09 10:12:10 -03:00
Felipe Medeiros
65c6ecff88 feat: adiciona headers no cadastro de webhook da instância 2024-09-06 20:46:10 -03:00
Davidson Gomes
c20a3b643f fix: no response evolution bot 2024-09-05 20:52:46 -03:00
Judson Cairo
16a0e6b18e Fix chatwoot not mentioning the quoted message 2024-09-05 09:28:57 -03:00
Davidson Gomes
ff78954383
Revert "V2 fix chatwoot reply quote" 2024-09-05 09:26:33 -03:00
Davidson Gomes
2c7288e888
Merge pull request #865 from judsonjuniorr/v2-rabbitmq-exchange-name
Use exchange name from .env
2024-09-05 09:20:55 -03:00
Davidson Gomes
a97a01e0aa
Merge pull request #864 from judsonjuniorr/v2-on-whatsapp-return
Fix on whatsapp number return
2024-09-05 09:20:29 -03:00
Judson Cairo
65debe5a95 Use exchange name from .env 2024-09-04 17:09:42 -03:00
Judson Cairo
672bdc1cc7 Fix on whatsapp number return 2024-09-04 17:05:07 -03:00
Judson Cairo
71289fb919 Fix chatwoot not mentioning the quoted message 2024-09-04 15:38:11 -03:00
Judson Cairo
b93725dd32 Merge branch 'v2.0.0' into v2 2024-09-04 13:24:12 -03:00
Davidson Gomes
25daec9f41 fix: use chatwoot with evolution channel 2024-09-03 17:23:05 -03:00
Davidson Gomes
849d5f79dc fix: sentry version 2024-09-03 16:53:23 -03:00
Davidson Gomes
73727da867 fix: upload media s3 on waba 2024-09-03 14:41:39 -03:00
Davidson Gomes
401770be1c
Merge pull request #852 from paulillo/fix-wpp-biz-api-upload-media-s3
Fix wpp biz api upload media s3
2024-09-03 14:40:50 -03:00
Davidson Gomes
acd4100b23 fix: fixed bugs in the frontend, on the event screens 2024-09-03 13:09:42 -03:00
Júlio Paulillo
b0aa299850 Hotfixes attribution 2024-09-03 12:25:02 -03:00
Júlio Paulillo
1db339c65f Declares instanceDto.chatwootAutoCreate 2024-09-03 12:13:30 -03:00
Júlio Paulillo
fed49c2072 Fixes wrong message type lookup 2024-09-02 20:39:11 -03:00
Davidson Gomes
5f86f01e3a
Merge pull request #849 from robsoncombr/v2.0.0-robsoncombr-fix-missing-autoCreate
v2.0.0-robsoncombr-fix-missing-autoCreate
2024-09-02 09:38:41 -03:00
Davidson Gomes
951da04373
Merge pull request #839 from judsonjuniorr/v2-is-on-whatsapp-cache
Save is on whatsapp on the database
2024-09-02 09:37:25 -03:00
Judson Cairo
1161a8a0e2 Await chatwoot creation and change log to error 2024-09-01 16:46:09 -03:00
Judson Junior
2cb68b38a9
Merge pull request #20 from robsoncombr/v2.0.0-robsoncombr-fix-missing-autoCreate
v2.0.0-robsoncombr-fix-missing-autoCreate
2024-09-01 16:42:26 -03:00
Robson Martins
265cba9e3e
v2.0.0-robsoncombr-fix-missing-autoCreate 2024-08-31 23:32:15 -03:00
Judson Junior
f17bb4ec42
Merge pull request #19 from EvolutionAPI/v2.0.0
changelog
2024-08-31 21:35:52 -03:00
Davidson Gomes
f0840e07fe changelog 2024-08-30 11:38:41 -03:00
Judson Junior
47d56f9c52
Merge pull request #18 from judsonjuniorr/v2-is-on-whatsapp-cache
V2 is on whatsapp cache
2024-08-30 10:38:55 -03:00
Judson Junior
ed5ff089c5
Merge pull request #17 from EvolutionAPI/v2.0.0
V2.0.0
2024-08-30 10:32:44 -03:00
Davidson Gomes
256bd3ef73
Merge pull request #838 from judsonjuniorr/v2-fix-cache-errors
Validate if cache exists before accessing it
2024-08-30 09:39:13 -03:00
Judson Cairo
2fc0815e14 Removed empty lines on cacheengine 2024-08-29 15:12:01 -03:00
Judson Cairo
41342f39de Removed redis cache from is on whatsapp 2024-08-28 17:29:01 -03:00
Judson Cairo
49806cf47e Avoid duplicate search
If already found on redis ignore database
2024-08-28 13:33:33 -03:00
Judson Cairo
7a76600cd6 Added redis cache for on whatsapp & TTL on .env 2024-08-28 12:11:32 -03:00
Judson Cairo
ce6438b9a8 Save is on whatsapp on the database 2024-08-28 11:19:47 -03:00
Judson Cairo
a19343d3e1 Validate if cache exists before accessing it 2024-08-28 09:59:40 -03:00
@milesibastos
0989f8a3ad feat: Define a global proxy to be used if the instance does not have one 2024-08-27 21:01:48 -03:00
Deivison Lincoln
b19c5375e5 [Proposta] Alterar level dos Logs do cache para verbose 2024-08-27 14:01:26 -03:00
Yan Teixeira
a44aa1f646 remove whitespaces 2024-08-27 01:34:25 -03:00
Yan Teixeira
d712cbc467 fix agents dify integration 2024-08-27 01:20:02 -03:00
Davidson Gomes
b8d6e55fba fix: change answer to message on Evolution Bot 2024-08-26 15:32:44 -03:00
Davidson Gomes
d776770d09 refactor: evolution bot 2024-08-25 10:22:22 -03:00
Davidson Gomes
c531906de2 fix: duplicated bot when use startTypebot 2024-08-24 14:57:54 -03:00
Davidson Gomes
e8fa952de5 fix: update description on chatbots 2024-08-24 14:36:00 -03:00
Davidson Gomes
aeea61ef4b fix: get integrations sessions by type 2024-08-24 13:18:58 -03:00
Davidson Gomes
a9c737da3f fix: chatbot services 2024-08-24 08:01:42 -03:00