2
0

️ Receive WhatsApp location (#1158)

Enable Typebot to recieve location messages via Whatsapp and parse them
into a string. Returns a string "Location: [LAT],[LON]" for the text
input block

As per
https://discord.com/channels/1155799591220953138/1193858969102450748

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced support for receiving and handling location messages in
WhatsApp integration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: memarius <me-marius@web.de>
Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
This commit is contained in:
memarius
2024-01-18 14:01:22 +01:00
committed by GitHub
parent 8283179ca6
commit 61bfe1bb96
2 changed files with 11 additions and 0 deletions

View File

@ -153,6 +153,8 @@ const getIncomingMessageContent = async ({
env.NEXTAUTH_URL +
`/api/typebots/${typebotId}/whatsapp/media/${mediaId}`
)
case 'location':
return `${message.location.latitude}, ${message.location.longitude}`
}
}