Slack · api · fg-0355

chat.postMessage returns not_in_channel for a bot posting to a public channel

If you see not_in_channel from chat.postMessage, the cause and the fix for Slack are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
not_in_channel from chat.postMessagechannel_not_found for a private channel the bot was never invited toPosting works in one channel but not another
Cause
New Slack apps can only post where the bot is a member. Posting to any public channel without joining needs the chat:write.public scope, and private channels always need an invite.
Fix
Add chat:write.public and reinstall, or call conversations.join for public channels. For private channels, invite the bot with /invite.
Apply
client.conversations_join(channel=channel_id) # needs channels:join client.chat_postMessage(channel=channel_id, text="Build finished")
Affected
Slack apps using granular bot scopes, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun