coursehero / slacktee

slacktee is a bash script that works like tee command. Instead of writing the standard input to files, slacktee posts it to Slack.
Apache License 2.0
830 stars 95 forks source link

Breaking rich format when sending +4000 characters #83

Closed marcelo321 closed 3 years ago

marcelo321 commented 3 years ago

I'm not sure if this is a bug or not, but when sending over 4k characters, the rich formats breaks and the message it's sent like this:

message1: `(3) message

message2: abcabc `(3)

so the rich format doesn't work and looks a bit ugly

Chikashi-Kato commented 3 years ago

This is the known issue and caused by the limitation of the slack API. For now, I don’t have any ideas handling this issue in better ways. If you know that the input can exceed 4000 characters, I recommend you to use -f option which sends the input as a file.

marcelo321 commented 3 years ago

Thanks, yeah I thought it had to do with the limit of the api