Skip to content

Commit 7c1f18b

Browse files
authored
Merge pull request #39 from samagra-comms/main
Prod deploy
2 parents 4864cb0 + 1030613 commit 7c1f18b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/message/services/inbound/gupshup.whatsapp.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ export class GupshupWhatsappInboundService {
9191
}
9292
return;
9393
}
94+
if (whatsappMessage.type == 'voice') {
95+
throw new Error('Media Type Not Supported');
96+
}
9497

9598
const xMessagePayload: XMessage = await convertMessageToXMsg(whatsappMessage);
9699
if (xMessagePayload.messageType != MessageType.TEXT) {

0 commit comments

Comments
 (0)