I want to post a message in slack using api. How can I mention all the team members of a channel just like @channel in slack?
You can use <!channel>.
<!channel>
Example
You can see all the possible @mentions in Slack documentation under Variables