Forum Discussion
Has anyone implemented a Discord or Telegram integration with Braze?
We're exploring the possibility of using Discord and Telegram as outbound channels to send messages to customers - still having Braze at the centre to trigger and orchestrate campaigns. Has anyone in the community looked at this? Hoping to shortcut our research if possible.
Thanks
- Manoj__Specialist II
Hello bosco I have used Telegram to send OTPs and notifications on a different platform, but you should be able to use webhooks to send messages to both Telegram and Discord via APIs.
Discord Message API: https://discord.com/developers/docs/resources/message
Telegram send Message API: https://core.telegram.org/method/messages.sendMessage - BenLerner-PaioSpecialist
Hey bosco - there are several steps to do this:
- Create a webhook URL for Discord via Integrations -> Webhooks -> New Webhook and then choose the channel / name of the webhook.
- Create a webhook in Braze to send over the message request to Discord based on some trigger you set up.
Here is an example of what the endpoint would look like:
curl -H "Content-Type: application/json" -X POST -d '{"content": "Hello, this is a message sent through a webhook!"}' https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN
It's super simple and I imagine equally as simple for Telegram.
Hope that helps!
Related Content
- 2 years ago
- 11 months ago
- 2 years ago