The goal is to send an image using the conversations API (group chat) from the backend.
I see how you can use mediaUrl if it's just 1-1 messaging:
MessageResource.Create(
body: "Hello there!",
from: new Twilio.Types.PhoneNumber("+15555555555"),
mediaUrl: mediaUrl,
to: new Twilio.Types.PhoneNumber("+12316851234")
);
The above doesn't work for me as I'm looking to use a group chat will multiple members. Here is my current implementation for sending a text to multiple participants
// create a group chat
ConversationResource conversation = ConversationResource.Create(client: _twilioClient);
var bootyService = ParticipantResource.Create(
identity: "myService",
messagingBindingProjectedAddress: "+15555555555",
pathConversationSid: conversation.Sid,
client: _twilioClient
);
// participant 1
var sender = ParticipantResource.Create(
messagingBindingAddress: "+12316851234",
pathConversationSid: conversation.Sid,
client: _twilioClient
);
// participant 2
var Receiver = ParticipantResource.Create(
messagingBindingAddress: "+12316851234",
pathConversationSid: conversation.Sid,
client: _twilioClient
);
var groupMessage = ConversationMessageResource.Create(
body: "Hi this is a group chat",
author: "myService",
pathConversationSid: conversation.Sid,
client: _twilioClient
);
The conversations API doesn't have any concept of mediaURL. Is it possible to use Conversations MessageResource to send an image?