I implement the below code for send messages using Twilio but I'm not getting any error when messages fail to deliver due to internet issues.
Com.Twilio.Chat.Message.Options options = Com.Twilio.Chat.Message.InvokeOptions().WithAttributes(jSON);
TwillioChatHelper.Instance.listOfChannel[position].Messages.SendMessage(options, new ChatMessageCallbackListner());
internal class ChatMessageCallbackListner : CallbackListener<Message>
{
public override void OnSuccess(Message result)
{
}
public override void OnError(ErrorInfo errorInfo)
{
base.OnError(errorInfo);
}
}