Send file path as alias via slack message
05:21 09 Jan 2026

I am using following python code to send message to slack

def send_msg_to_slack(message: str, channel: str) -> None:
    ....
    client = slack.WebClient(token=credential["token"])
    client.chat_postMessage(channel=channel, text=message)

send_msg_to_slack("please ignore:","slack_channel")

expected output is as follows
please ignore : ignore

actual output is as follows:
please ignore :

Is their any way to do that?

python-3.x slack-api