Commit Graph

65 Commits

Author SHA1 Message Date
yousseefs
11d31123ac fix: received messages but chat doesnt exists 2024-10-28 20:23:20 +00:00
Davidson Gomes
e1de70542b feat: convert audio with api 2024-10-22 09:43:58 -03:00
Davidson Gomes
f9705c07dc feat: convert audio with api 2024-10-21 11:59:20 -03:00
Davidson Gomes
e986768716 feat: convert audio with api 2024-10-21 11:39:21 -03:00
Davidson Gomes
5401ecd2c4 fix: send buttons cloud api oficial 2024-10-18 19:23:15 -03:00
Davidson Gomes
1787238c63 feat: send list and buttons 2024-10-18 15:33:21 -03:00
Davidson Gomes
c4bcd1fafe
Merge pull request #991 from rafaelsantana6/fix-fetch-instances
feat: add support for fetching multiple instances by key
2024-10-18 10:55:52 -03:00
Rafael Santana
ecd4b913b6 feat: add support for fetching multiple instances by key
This commit adds a new feature to fetch instances by key in the InstanceController. If the provided key does not match the environment key, the controller will search for instances with the matching token. If instances are found, the names are extracted and passed to the waMonitor to retrieve instance information.

Also, update the waMonitor's instanceInfo method to accept an array of instance names instead of a single name.

Fixes #990
2024-10-17 16:42:52 -05:00
Deivison Lincoln
a6fb8cbd30 refactor: Remove unnecessary code for handling contact not in WhatsApp
The code changes in `whatsapp.baileys.service.ts` remove the unnecessary code that handles the case when a contact is not in WhatsApp. The code was previously sending a notification to Chatwoot, but it is no longer needed. This change improves the code by removing unnecessary complexity.
2024-10-16 15:31:54 -03:00
Davidson Gomes
ec2b7f94f8
Merge pull request #981 from yousseefspires/feat/delete-messages
feat: add logical or permanent message deletion based on env config
2024-10-15 17:44:15 -03:00
yousseefs
45acc6d281 feat: add logical or permanent message deletion based on env config 2024-10-15 20:10:59 +01:00
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
5b91648d5c Resolve read messages from groups and fromMe 2024-10-11 15:11:35 +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
Jesus
394c091810 Fix parse multiples messages updates and creates 2024-10-08 17:15:53 +02:00
Jesus
c6ee463dae Improve update messages status 2024-10-08 12:51:10 +02:00
Felipe Medeiros
7adab5c1c0 Escutar a configuração do webhook para midias recebidas 2024-10-07 19:14:21 -03: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
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
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
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
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
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
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
4fa3c50138 fix: mexico number 2024-10-03 16:36:28 -03:00
Davidson Gomes
0d8982395f fix: openai setting when send a message with chatwoot 2024-10-03 14:28:31 -03:00
Davidson Gomes
182c5fc25e change version 2024-10-03 14:23:10 -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
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
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
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