Mattermost limits messages to 4000 characters due to the database column type used and in order to not affect performance, that's the limit for the foreseeable future.
There's automation users are building that needs to send messages more than 4000 characters long.
Opening a thread to get ideas and recommendations from the community on how to address this.
Reference: https://github.com/mattermost/platform/issues/2769