Post 通过slackapi发送命令

Post 通过slackapi发送命令,post,command,webclient,slack,slack-api,Post,Command,Webclient,Slack,Slack Api,有没有办法通过API以编程方式向Slack发送命令?我正在使用成功发布消息 var postingResponse = client.UploadValues("https://slack.com/api/chat.postMessage", "POST", new NameValueCollection() { {"token","<token>"},

有没有办法通过API以编程方式向Slack发送
命令
?我正在使用成功发布消息

var postingResponse = client.UploadValues("https://slack.com/api/chat.postMessage", 
                      "POST", new NameValueCollection() {
                            {"token","<token>"},
                            {"channel","<ID>"}, 
                            {"text", "/mycommand hello" },
                            {"username","<username>" },
                            {"link_names", "true" },
                            {"parse", "full" }
                       });
var postingResponse=client.UploadValues(“https://slack.com/api/chat.postMessage", 
“发布”,新名称ValueCollection(){
{“令牌”,“”},
{“频道”,“”},
{“text”,“/mycommand hello”},
{“用户名”,“”},
{“link_names”,“true”},
{“解析”,“完整”}
});
这很好,但是
/mycommand hello
只是作为文本打印,而不是作为命令执行。我尝试添加一对
{“command”,“/mycommand hello”}
,但也没有任何结果


谢谢

我没有亲自尝试过,但据我所知,在公共通道中有一种用于执行命令的未记录API方法。还有一个问题

和的可能副本