Inumedia / SlackAPI

.NET Implementation of the Slack team communication platform API.
MIT License
452 stars 243 forks source link

Formatting dropped when messages split #222

Open mattgenious opened 4 years ago

mattgenious commented 4 years ago

When trying to send a codeblock into a channel that is larger than 4000 characters the message is split as per rate limits described here: https://api.slack.com/docs/rate-limits#rtm

This results in the codeblock not being formattet correctly as the first message will include the characters to start the codeblock and the last message contains the closing characters for the codeblock and slack sees them as seperate messages.

I am not sure if this is fixable on the client side or if it is an inherent problem with Slacks requirements.