From bb692cced9f6f58663849e9279dc4c8e3aff3bbb Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 29 Jan 2026 22:43:15 +0000 Subject: [PATCH] Return the MMS value as an ID for MMS messages. --- comms/text/voipms.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/comms/text/voipms.go b/comms/text/voipms.go index 967ffb0f..e884e5f3 100644 --- a/comms/text/voipms.go +++ b/comms/text/voipms.go @@ -17,6 +17,7 @@ import ( var VOIP_MS_API = "https://voip.ms/api/v1/rest.php" type VoipMSResponse struct { + MMS int `json:"mms"` Message string `json:"message"` Status string `json:"status"` SMS int `json:"sms"` @@ -47,8 +48,8 @@ func sendTextVoipms(ctx context.Context, to string, content string, media ...str if err != nil { return "", fmt.Errorf("Failed to send MMS: %w", err) } - log.Info().Str("status", response.Status).Int("sms", response.SMS).Msg("Sent MMS message") - return strconv.Itoa(response.SMS), nil + log.Info().Str("status", response.Status).Int("mms", response.MMS).Msg("Sent MMS message") + return strconv.Itoa(response.MMS), nil } func sendSMSVoipms(to string, content string) (string, error) {