Skip to content

Commit

Permalink
truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
uriva committed Dec 8, 2024
1 parent 1f012c7 commit 346ac1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/whatsapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ const textParams = (type: ParamType) =>
type,
parameters: texts.map((text) => ({
type: "text",
text: truncate(60)(text),
// Max length is 60, but it also includes the parameter name or something.
text: truncate(57)(text),
})),
}),
);
Expand Down

0 comments on commit 346ac1f

Please sign in to comment.