Commit Graph

1295 Commits

Author SHA1 Message Date
Davidson Gomes
549224ac16 fix: update WhatsApp Baileys service
Modified the WhatsApp Baileys service in channels to fix an issue. This change addresses a bug that was causing incorrect message handling. The update ensures more reliable communication through the WhatsApp API.
2024-06-17 13:48:46 -03:00
Davidson Gomes
d45e303d55 fix: add TypeScript types to use-multi-file-auth-state-prisma.ts functions
Added TypeScript types to functions in use-multi-file-auth-state-prisma.ts to improve type safety and code readability. This change helps catch type-related errors during development and enhances the maintainability of the codebase.
2024-06-17 13:42:18 -03:00
Davidson Gomes
85106667a2 feat: update message sending logic
Refactored sendMessage.controller.ts, chat.dto.ts, and sendMessage.dto.ts to improve message handling. Updated chatwoot.service.ts and sendMessage.router.ts for better integration with Chatwoot. Enhanced whatsapp.baileys.service.ts for more reliable WhatsApp communication. Adjusted chat.schema.ts and message.schema.ts for validation improvements. These changes enhance the overall messaging functionality and reliability.
2024-06-15 12:46:52 -03:00
Davidson Gomes
2d49c73023 fix: add validation to prevent group calls in whatsapp.baileys.service.ts
Added a check to prevent group calls by throwing a BadRequestException when a group JID is detected. This change ensures that only individual calls are processed, preventing unsupported group call attempts and improving error handling.
2024-06-14 09:45:02 -03:00
Davidson Gomes
92a0d8ccc9 feat: update API routes and services for better cache handling
Modified instance.router.ts to change HTTP method from PUT to POST for 'restart' route. Updated whatsapp.baileys.service.ts to correct cache configuration logic, ensuring proper usage of cached group metadata. Removed obsolete Typebot-related schema definitions from instance.schema.ts for cleaner validation. These changes improve API functionality and maintainability.
2024-06-14 09:25:18 -03:00
Davidson Gomes
7dfc09ff16 feat: update Baileys library and add fake call feature
Updated the Baileys library reference in package.json and refactored imports across multiple files to use the new library. Added a new feature to handle fake calls in sendMessage.controller.ts and related DTOs. This change improves the integration with the Baileys library and introduces the ability to simulate calls, enhancing the testing capabilities. Main files modified: package.json, instance.controller.ts, sendMessage.controller.ts, chat.dto.ts, instance.dto.ts, sendMessage.dto.ts, chatwoot.service.ts, chatwoot-import-helper.ts, sendMessage.router.ts, cache.service.ts, channel.service.ts, whatsapp.baileys.service.ts, whatsapp.business.service.ts, wa.types.ts, rediscache.ts, use-multi-file-auth-state-prisma.ts, use-multi-file-auth-state-provider-files.ts, use-multi-file-auth-state-redis-db.ts, message.schema.ts.
2024-06-14 08:44:19 -03:00
Davidson Gomes
61d6ddfa81 fix: update default values for WA_BUSINESS configuration
Updated the default values for TOKEN_WEBHOOK, URL, and VERSION in the WA_BUSINESS configuration. This change ensures that the application has more meaningful default settings, improving the initial setup experience. The impact is limited to default behavior when environment variables are not set.
2024-06-13 18:53:20 -03:00
Davidson Gomes
06ba1fd17b chore: update baileys version in package.json
Updated the baileys version in package.json to ensure compatibility with the latest features and bug fixes. This change is necessary to maintain the stability and performance of the application.
2024-06-12 18:56:17 -03:00
Davidson Gomes
f1c31a70bc fix: adjust settings in whatsapp.baileys.service.ts
Increased retryRequestDelayMs, added maxMsgRetryCount, and updated connectTimeoutMs and qrTimeout values for better performance. Adjusted transactionOpts for more efficient retries. These changes aim to enhance connection stability and message handling efficiency.
2024-06-12 18:39:57 -03:00
Davidson Gomes
7799e6626f fix: baileys ignore newsletter 2024-06-12 15:42:37 -03:00
Davidson Gomes
aa79c1bfd7 feat: tagging in chatwoot contact by instance 2024-06-12 15:18:37 -03:00
Davidson Gomes
7451b0d1e3 feat: tagging in chatwoot contact by instance 2024-06-12 15:18:26 -03:00
Davidson Gomes
18d4c68025 fix: messageId baileys 2024-06-12 11:23:51 -03:00
Davidson Gomes
a7887f0b1c fix: messageId baileys 2024-06-12 09:55:40 -03:00
Davidson Gomes
fa14b7b1a9 feat: Added debounce time for typebot messages 2024-06-11 17:56:45 -03:00
Davidson Gomes
2776f113cb feat: Added debounce time for typebot messages 2024-06-11 17:56:20 -03:00
Davidson Gomes
0bf8e55144 fix: provider variables are no longer mandatory in the env 2024-06-11 13:06:35 -03:00
Davidson Gomes
87c68df0f6 fix: provider variables are no longer mandatory in the env 2024-06-11 12:40:00 -03:00
Davidson Gomes
f551242e86 fix: reply message 2024-06-11 11:07:49 -03:00
Davidson Gomes
31258a9b85 feat: Organization configuration and logo in chatwoot bot contact 2024-06-11 10:09:04 -03:00
Davidson Gomes
a8937bd8b1 fix: get message id for typebot 2024-06-10 18:32:05 -03:00
Davidson Gomes
fa3306b0f4 adjusts in typebot 2024-06-10 16:38:11 -03:00
Davidson Gomes
4824ccafd6 fix: get base64 for media message 2024-06-10 15:55:40 -03:00
Davidson Gomes
f40cdb62ba fix: get message id for typebot 2024-06-10 15:48:48 -03:00
Davidson Gomes
8c6e1a579f fix: reply with media message 2024-06-10 15:15:13 -03:00
Davidson Gomes
95022578ba fix: reply with media message 2024-06-10 15:03:41 -03:00
Davidson Gomes
99999eae5d fix: reply with media message 2024-06-10 14:50:03 -03:00
Davidson Gomes
2eb09c1853 fix: reply with media message 2024-06-10 14:49:46 -03:00
Davidson Gomes
99ebb81838 chore: Dockerfile 2024-06-10 14:16:40 -03:00
Davidson Gomes
6d6f7293f9 fix: audio convertion with stream to mp4 2024-06-10 14:01:07 -03:00
Davidson Gomes
9cd50833cf fix: audio convertion with stream 2024-06-10 13:15:24 -03:00
Davidson Gomes
c1cbc0d30c test: audio convertion 2024-06-10 13:01:38 -03:00
Davidson Gomes
ed6e28744e test: audio convertion 2024-06-10 12:34:06 -03:00
Davidson Gomes
28e5b2f65e fix: instances 2024-06-10 11:52:19 -03:00
Davidson Gomes
4879bdb527 fix: instances 2024-06-10 11:33:36 -03:00
Davidson Gomes
7ebf237c1c fix: init store folders 2024-06-10 11:28:28 -03:00
Davidson Gomes
21d984969a fix: Correction of audio sending, now we can speed it up and have the audio wireframe 2024-06-10 07:45:43 -03:00
Davidson Gomes
b3adedca0b docker 2024-06-09 21:56:43 -03:00
Davidson Gomes
f6cca7df92 docker 2024-06-09 21:54:10 -03:00
Davidson Gomes
1737e61d60 docker 2024-06-09 21:51:12 -03:00
Davidson Gomes
dae04c5a2f docker 2024-06-09 21:43:53 -03:00
Davidson Gomes
7b2f8fa5e1 docker 2024-06-09 21:23:09 -03:00
Davidson Gomes
11a52c3f43 docker 2024-06-09 17:38:45 -03:00
Davidson Gomes
d61d5e9631 docker 2024-06-09 17:35:05 -03:00
Davidson Gomes
2e61de5297 docker 2024-06-09 17:31:47 -03:00
Davidson Gomes
b7936d77f5 docker 2024-06-09 17:11:45 -03:00
Davidson Gomes
184009bc4b docker 2024-06-09 16:54:44 -03:00
Davidson Gomes
8369b857da docker 2024-06-09 16:51:47 -03:00
Davidson Gomes
585692cae3 git actions v2 2024-06-09 16:15:44 -03:00
Davidson Gomes
56950bc274 git actions v2 2024-06-09 15:07:56 -03:00