nidus-sync/comms/text/text.go
Eli Ribble d2d5f003d8
Get Voip.ms working again in the text system
Because we need it for the conference.
2026-01-29 21:53:49 +00:00

18 lines
451 B
Go

package text
import (
"context"
"fmt"
"github.com/Gleipnir-Technology/nidus-sync/config"
)
func SendText(ctx context.Context, source string, destination string, message string) (string, error) {
switch config.TextProvider {
case "voipms":
return sendTextVoipms(ctx, destination, message)
case "twilio":
return sendTextTwilio(ctx, source, destination, message)
}
return "", fmt.Errorf("Unsupported provider '%s'", config.TextProvider)
}