What is the maximum character limit in a chat?

The maximum character limit for a chat is 20,000 characters. There is a 40-character limit for individual #hashtags, $cashtags, and wall posts.