From 19b171c6e37d3ea000a4ae39cb9ff6178c4e018c Mon Sep 17 00:00:00 2001 From: Otacilio Maia Date: Tue, 3 Sep 2024 15:55:22 -0300 Subject: [PATCH] fix: add api max limit for msg --- src/services/sendToZap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/sendToZap.ts b/src/services/sendToZap.ts index b548b2c..cc7fac5 100644 --- a/src/services/sendToZap.ts +++ b/src/services/sendToZap.ts @@ -40,7 +40,7 @@ export const sendText = async (to: string, text: string) => { type: 'text', text: { preview_url: true, - body: text, + body: text.substring(0, 4090), }, }; console.log(`sending message to ${to}: ${text}`);