When sending SMS to Infobip provider only the first number receives it; others don't get anything. This line here shows that only first member is picked and others ignored
|
dataMap := map[string]string{"from": message.From, "to": message.To[0], "text": message.Text} |
Infobip API supports sending to multiple destinations. Also, perhaps shift to use newer API (https://www.infobip.com/docs/api#channels/sms/send-sms-message)