Implemented a function to synchronize message deletions on WhatsApp, automatically reflecting in Chatwoot

A new variable has been created, and a function has been implemented to manage the deletion of messages on WhatsApp. Now, when deleting a message for everyone on WhatsApp, the same action will be automatically performed on Chatwoot, ensuring consistency across platforms
This commit is contained in:
Amilton Morais
2024-01-24 13:38:29 -03:00
parent 7f74de07ed
commit 0e50da324b
4 changed files with 40 additions and 27 deletions

View File

@@ -153,6 +153,10 @@ TYPEBOT:
API_VERSION: 'old' # old | latest
KEEP_OPEN: false
# If you leave this option as false, when deleting the message for everyone on WhatsApp, it will not be deleted on Chatwoot.
CHATWOOT:
MESSAGE_DELETE: true # false | true
# Cache to optimize application performance
CACHE:
REDIS: