Bot postMessage缺少图标和名称

Rob*_*ion 7 slack

使用自定义bot,我可以postMessage(doc)进入一个通道(使用bot的auth-token).但是,消息不显示我的机器人的图标或名称,只是默认机器人的一个:

松弛博特

当我更改主题时,它工作正常(即我的自定义机器人的图标和名称出现).

是否需要一些额外的配置?

Rob*_*ion 13

似乎as_user=true需要参数.Doc在这方面有点令人困惑:

as_user Optional
Pass true to post the message as the authed user, instead of as a bot
Run Code Online (Sandbox Code Playgroud)

在这种情况下,authed用户是您使用过的auth-token的机器人.