Send slack message on private channel


I can not send message on private channel, i have this error :

Error: Slack error response: {"ok":false,"error":"channel_not_found"}
    at Object.slackApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Slack/GenericFunctions.js:42:19)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Slack/Slack.node.js:645:36)
    at async /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:395:47

When i use a public channel, there is no problem.

Thanks in advance for your help

Welcome to the community. @Olivier

Are you using the bot access token or the user access token? If you are using the bot access token I believe the bot needs to be part of the channel. If you are using the user access token, then the user needs to be in the channel.

1 Like

Sorry for the delay of my answer…

I fixed my issue with your message, thanks a lot.