0

We are currently using Twilio Message Resource (https://www.twilio.com/docs/sms/api/message-resource ) ‘MessageResource.Create’ to send SMS. It works well for single recipient. We would like to support Bulk SMS, where a user can send SMS to 5000 to 10000 Phone numbers.

Can we achieve this through Message Resource or are there any other services from Twilio?

Also, currently, with MessageResource.Create or Notify service, even if we send sms to multiple numbers, every message has a separate MessageSid due to which, bulk sms sent to each number creates a separate message thread.

Is there a common Id or some parameter using which we could identify all the numbers to which bulk sms was sent and group them together in a single message thread (like a group)?

Ashish
  • 11
  • 3

1 Answers1

1

Sending messages from a single Twilio Phone Number works well for low volumes of texts, but there are limitations imposed by carriers which limit the amount of segments you can send per second.

To increase the throughput you need to use multiple phone numbers to send messages from, but instead of building this solution yourself, you can use a Messaging Service.

First, create a messaging service, and then, add multiple phone numbers to your service to increase the message throughput. The more phone numbers in your service, the more messages can be sent in parallel.

Your code doesn't need to change a lot, but instead of specifying a phone number, you need to specify the Messaging Service by its SID:

var message = MessageResource.Create(
    body: "Ahoy!",
    messagingServiceSid: "MG9752274e9e519418a7406176694466fa",
    to: new Twilio.Types.PhoneNumber("+441632960675")
);

Here's some more guidance on how to send messages at scale.


There's no way to group your messages together. You'll need to group them in your own data store and query them if you need that functionality.

Swimburger
  • 6,681
  • 6
  • 36
  • 63