I have a bot and through chat.postMessage endpoint, I'm able to send message to a channel. I'm also about to retrieve the list of users in slack using users.list. I'm trying to 'get' the list of users and then send a slack message to a particular user (who's not a bot). chat.postMessage
accepts only channel (id) as input (that starts with C) but not user id (that starts with U).
How do I achieve this?
https://stackoverflow.com/a/70366423/3119443
Got answer from this post. Basically, I need to get channel Id from conversations.open method and then use chat postmessage.