As of August 29th, libslackrtm cannot post messages to enterprise Slack workspaces. Failures are as follows:
{"ok":false,"reply_to":3,"error":{"msg":"cannot process message","code":4,"source":"gatewayserver-REDACTED"}}
Recently, this was finally reported to Slack, for more insight on why this error is occurring.
Possible workaround is to use the more modern web API (conversions.post method) in order to post messages, but this should work, according to the documentation. Currently waiting to hear back again.
12/17/2024 4:34 PM — InterLinked
Autoresolved by code commit on GitHub:
libslackrtm: Document known limitation in RTM API.
https://github.com/InterLinked1/slack-rtm/commit/072e6982a1466b77ae049e2836f76012cb4b0a99
You must be
12/17/2024 4:27 PM — InterLinked
Slack has essentially indicated they don't care to fix this, since use of the API with xoxc/xoxd tokens is not officially supported.
Will update documentation and close as WONTFIX.