From 1d7484ef4d5ddc62a220714a985eec29ee04daf7 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 31 Jan 2026 20:16:12 +0000 Subject: [PATCH] Confirm when a user confirms a phone number --- platform/text/text.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/text/text.go b/platform/text/text.go index 0e0741eb..e6d51aab 100644 --- a/platform/text/text.go +++ b/platform/text/text.go @@ -42,6 +42,11 @@ func HandleTextMessage(src string, dst string, body string) { switch body_l { case "yes": setPhoneStatus(ctx, src, enums.CommsPhonestatustypeOkToSend) + content := "Thanks, we've confirmed your phone number. You can text STOP at any time if you change your mind" + err := sendText(ctx, dst, src, content, enums.CommsTextoriginCommandResponse, false, false) + if err != nil { + log.Error().Err(err).Msg("Failed to send confirmation response") + } handleWaitingTextJobs(ctx, src) default: content := "I have to start with either 'YES' or 'STOP' first, Which do you want?"