slack-cli icon indicating copy to clipboard operation
slack-cli copied to clipboard

allow send message as bot

Open Wing924 opened this issue 6 years ago • 2 comments

Please allow send message as slack app bot account. We need as_user=false when use bot token.

Wing924 avatar Feb 21 '19 00:02 Wing924

Unfortunately it got deprecated and no longer works:

"deprecated_argument": "as_user"

berezovskyi avatar Jul 31 '20 23:07 berezovskyi

@Wing924 It's possible to send a message as a bot by adding the chat:write:bot permission to your app (See docs), and then adding the bot to the channel where you want to post your message. You'll need to initialize using the Bot User OAuth Access Token and not the OAuth Access Token.

I hope that his helps.

tjg37 avatar Sep 09 '20 09:09 tjg37