Not able to send messages to specific user based on the userID through slack's incoming webhook

502 Views Asked by At

I am able to send messages to specific user based on the channel, But i want to send messages based on userID, so i tried to get the userID of the specific user, but strangely am getting the userID of the SlackBot(slack's inbuilt bot) irrespective of the who the user is...

here is the slack doc which says we can use channelID or userID to send to particular channel: https://api.slack.com/incoming-webhooks

"channel": "U024BE7LH" ---userID
"channel": "D7Y15W6PF" ---channelID

In a nutshell, the problem is: am able to get the channel ID of a particular user, but the userID am getting for any user is: U3WQ78KNS (which is user ID of slack's SlackBot)

Please let me know about this strange behavior.

0

There are 0 best solutions below