I want to compose a python script which sends a color-formatted message to a configured slack channel. I managed to send sentences of plain texts to slack channels but I cou
What you can do (as an admittedly clumsy workaround until/unless Slack supports more than primitive formatting) is:
You can use ImageMagick for this.
.png images allow for transparency, so you don't have to worry too much about background matching.
This is, of course, a terribly inefficient way to go about it, but it has the agreeable characteristic of doing what you want.