I am trying to integrate Twilio WhatsApp API with my application, is it possible to send broadcast messages using Twilio.
Twilio developer evangelist here.
You can send outbound messages over WhatsApp using Twilio. There are some constraints though.
You need to get your users to explicitly opt in to receive WhatsApp messages
When you send a notification to a user, if it is more than 24 hours since the user sent you a message you can only send approved template messages.
Twilio Notify does not support WhatsApp, so to broadcast messages to a group of users you will need to make one API request per message using the regular Twilio messaging API.
Let me know if that helps at all.
Related
I push a lot (10Ks) of messages to Slack channel webhooks each month. It's not uncommon for the Slack API to return network errors, like ECONNRESET, meaning I don't know if the message was sent or not.
You can resend (POST) to the Slack chat.postMessage endpoint, but that might deliver the message twice.
Is there a way to idempotently send a Slack message once to a channel using Slack webhooks?
Slack Webhooks provide a very limited set of functionality.
Idempotency is not one of them.
https://api.slack.com/messaging/webhooks
I have been been able to use Twilio and SharePoint to send SMS messages. We would like to go to the next stage and create a question/response system and receive those SMS messages from our customers and add them to a SharePoint list, therefore kicking off workflows based on the customer's SMS response.
Any ideas ?
Inbound SMS are sent to your Twilio number which you can then define a webhook for. The webhook (the URL Twilio will sent an HTTP Request to when a message is received) will contain the Body of the SMS message.
TwiML™ for Programmable SMS
What is a Webhook
I'm testing the Twilio API for WhatsApp, responding to incoming messages with TwiML.
In the request I can retrieve the sender's phone number, but is it also possible to retrieve the sender Whatsapp nick name?
It is also possible activate the typing indicators?
Twilio developer evangelist here.
The inbound Twilio webhook for WhatsApp does not support the sender nickname and you can't set or receive typing indicators at the moment.
I'm building a Slack (instant messaging) chat client, I'm looking for a way to trigger a notification to receipent when a new message is sent to him, push notification of course.
What's the endpoint or stream API to be able to trigger a push notification to devices?
I think it should be some backend microservice listening for incoming messages in a channel with a list for users to notify.
If you want to get instant notifications about new messages posted to a channel you can either use the Real Time Messaging API (RTM API) or the Events API.
The main difference:
RTM API uses Websockets and you will receive a constant stream of events about everything that happens on the connected workspace.
Events API uses standard HTTP requests and Slack will only send events to your endpoint that you subscribed too.
There are many factors to consider when choosing the right API for a project. Please also see the official FAQ from Slack on the topic for more details.
I wrote some bot that sends messages to some channel using nodejs. This bot is an admin in that channel and it can see messages from users using /getupdates api. However it can't see own messages. Is there any way to do that?