[C# SDK] Creating a Content Distribution List February 14, 2023 14:08 Updated For some chatbots, content delivery is the main functionality. The chatbot of a retail company, for example, needs to send monthly promotional coupons to a certain customer profile. For this, it is necessary to separate the customers who should receive the coupons from those who should not and, finally, send the messages to the correct group. To solve this problem, just use the list extension. Create the BLiP C# SDK template project (see how in the BLiP documentation). Add the IBroadcastExtension interface to your MessageReceiver's constructor. Note: It will be injected automatically by the SDK. Create a distribution list using the CreateDistributionListAsync(string listName) method. Add a new user to your list with the AddRecipientAsync(string listName, Identity recipientIdentity) method. Finally, send a message to all users on your list with the SendMessageAsync(string listName, Document d) method. public class BroadcastMessageReceiver : IMessageReceiver{ private readonly IBroadcastExtension _broadcastExtension; private readonly IMessagingHubSender _sender; public BroadcastMessageReceiver(IMessagingHubSender sender, IBroadcastExtension broadcastExtension) { _broadcastExtension = broadcastExtension; _sender = sender; } public async Task ReceiveAsync(Message message, CancellationToken cancellationToken) { var listName = "couponUsers"; //Add a new distribution list with name couponUsers await _broadcastExtension.CreateDistributionListAsync(listName); //Add some users to couponUsers list await _broadcastExtension.AddRecipientAsync(listName, message.From.ToIdentity()); //Send a message to couponUsers list users await _broadcastExtension.SendMessageAsync(listName, new PlainText { Text = "Hello you have got a new discount coupon" }); }} For more information, visit the discussion on the subject in our community or the videos on our channel. 😃 Related articles Creating interactive messages in WhatsApp C# SDK with .NET Core Support [SDK C#] Track of Users who used a certain functionality Sending WhatsApp Active Messages on Blip Desk How to build bots using SDKs or HTTP API