松弛:已发送邮件中的机器人名称 [英] Slack: Bot name in sent messages

查看:94
本文介绍了松弛:已发送邮件中的机器人名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个名为"esmeralda"的机器人.当我使用为此esmeralda生成的令牌向Slack发送消息时,该消息似乎只是来自"bot",而不是"esmeralda".

I created a bot named "esmeralda". When I send a message to Slack with the token generated for this esmeralda, the message just appears to be from "bot", not "esmeralda".

我可以做些什么,以便显示消息是由"esmeralda"而不是"bot"发送的吗?

Can I do something so that the message will be shown to be sent by "esmeralda" instead the "bot"?

推荐答案

我猜您正在使用Web API,因此使用的是

I'm guessing you're using the Web API and therefore the chat.postMessage method?

我进一步猜测您是传递as_user=true作为您的参数之一.尝试这样做.

I'm further guessing that you're not passing as_user=true as one of your parameters. Try doing that.

(如果我的猜测是错误的,请提供您正在执行的操作的实际详细信息:至少告诉我们您正在使用的API,正在调用的方法以及正在传递的参数.理想情况下,应共享代码.)

(If my guesses are wrong, please include the actual details of what you're doing: at least tell us what API you're using, what method you're calling, and what parameters you're passing. Ideally share code.)

这篇关于松弛:已发送邮件中的机器人名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆