问题描述
我想在工作区上安装 Slack 应用后直接向频道发送自定义消息.
I would like send a custom message to a channel, directly after a Slack app installation on the workspace.
我没有找到获得安装"事件安装的方法.
I don't find a way to get "install" event installation.
所以我想在频道创建后使用 bot 用户发送消息,但我也没有发现任何...
So I thought to use bot user to send a message after the channel creation, but I found nothing about that neither...
有什么技巧可以做到这一点吗?
Is there a trick to do that?
推荐答案
没有安装事件,但您不需要.如果您想在将应用程序安装到工作区后发送消息,只需在安装脚本的末尾添加该功能.例如在您收到工作区的新令牌之后.
There is no installation event, but you don't need one. If you want to send a message after installation of you app to a workspace just add that function at the end of your installation script. e.g. right after you receive the new token for the workspace.
一种流行的方法是在应用频道中发送欢迎消息".查看 这篇文章关于如何做到这一点.
A popular approach is to send the "welcome message" in the app channel. Check out this post about how to do that.
这篇关于将 slack 应用程序添加到工作区后如何发送消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!