Recommendations for handling automation that wants to post messages longer than 4000 characters per message

Why not to do exactly as Slack does with snippets?