Skip to content

relizy / SLACK_RICH_TEXT_MESSAGE_MAX_LENGTH

Variable: SLACK_RICH_TEXT_MESSAGE_MAX_LENGTH ​

const SLACK_RICH_TEXT_MESSAGE_MAX_LENGTH: 11000 = 11000

Defined in: src/core/slack-markdown.ts:21

Budget of the JSON of all the blocks of a message containing rich_text blocks. Slack rejects such messages above ~13,200 characters with msg_blocks_too_long (https://github.com/slackapi/bolt-js/issues/2509): measuring the JSON, which is larger than the text Slack counts, keeps a safe margin.

Released under the MIT License.