Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed Jun 9, 2024
1 parent 8369b85 commit 184009b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Added chatwoot integration activation
* Added typebot integration activation
* Now you can register several typebots with triggers
* Media sent to typebot now goes as a template string, example: imageMessage:MESSAGE_ID

### Fixed

Expand Down
10 changes: 5 additions & 5 deletions src/api/integrations/typebot/services/typebot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,6 @@ export class TypebotService {
const types = {
conversation: msg.conversation,
extendedTextMessage: msg.extendedTextMessage?.text,
// Medias
audioMessage: `audioMessage:${msg.key.id}`,
imageMessage: `imageMessage:${msg.key.id}`,
videoMessage: `videoMessage:${msg.key.id}`,
documentMessage: `documentMessage:${msg.key.id}`,
contactMessage: msg.contactMessage?.displayName,
locationMessage: msg.locationMessage?.degreesLatitude,
viewOnceMessageV2:
Expand All @@ -716,6 +711,11 @@ export class TypebotService {
msg.viewOnceMessageV2?.message?.audioMessage?.url,
listResponseMessage: msg.listResponseMessage?.singleSelectReply?.selectedRowId,
responseRowId: msg.listResponseMessage?.singleSelectReply?.selectedRowId,
// Medias
audioMessage: `audioMessage:${msg.key.id}`,
imageMessage: `imageMessage:${msg.key.id}`,
videoMessage: `videoMessage:${msg.key.id}`,
documentMessage: `documentMessage:${msg.key.id}`,
};

const messageType = Object.keys(types).find((key) => types[key] !== undefined) || 'unknown';
Expand Down
25 changes: 0 additions & 25 deletions start.sh

This file was deleted.

0 comments on commit 184009b

Please sign in to comment.