From ebad7487b3e7035215816e1070fa334e765e20d3 Mon Sep 17 00:00:00 2001 From: edschuy95 Date: Thu, 13 Nov 2025 00:35:20 +0000 Subject: [PATCH] Update routes/threecx.py Lowered the upgrade threshold to 158 characters. I've seen some fringe cases where 159 or 160 still gets bounced. Probably due to some byte count / character count mismatch when using emojis. --- routes/threecx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/threecx.py b/routes/threecx.py index ab5af21..66b4b28 100644 --- a/routes/threecx.py +++ b/routes/threecx.py @@ -35,7 +35,7 @@ def handle_threecx_outbound(): text = json_data.get("text", "") media_urls = json_data.get("media_urls", []) - is_mms = bool(media_urls) or len(text) > 160 + is_mms = bool(media_urls) or len(text) > 158 if is_mms and not media_urls: json_data["media_urls"] = [""]