I am working on a weak application (scope, including bot and incoming webcams). I can send a message to a specific channel, but I do not know how to stop using the "& channel =" parameter and just send messages to the listening channels. Listening, I mean, when the application is installed, the user is asked where to send (channel or dm should be selected).
String postUrl = "https://slack.com/api/chat.postMessage?token=" + botAccessToken + "&as_user=false&channel=%23community&text=testing&username=CommunityQ";
Any hints would be helpful.
source share