简体   繁体   English

Microsoft Teams 机器人发送的消息未显示在对话中

[英]Message sent by Microsoft Teams bot is not displayed in the conversation

I have tried to send MS Teams bot message request via rest api:我试图通过 rest api 发送 MS Teams 机器人消息请求:

End point: https://smba.trafficmanager.net/ca/apis/v3/conversations/{conversation id}/activities端点: https://smba.trafficmanager.net/ca/apis/v3/conversations/{conversation id}/activities

{"text":"test","type":"message"} {“文本”:“测试”,“类型”:“消息”}

And got empty response: {}并得到空响应:{}

The message i sent did not appear in the conversation.我发送的消息没有出现在对话中。 Any idea where i could have misconfigured?知道我可能在哪里配置错误吗?

It is possible that trustServiceUrl needs to be run before a message is sent, i can't find equivalent rest api to call.在发送消息之前可能需要运行 trustServiceUrl,我找不到等效的 rest api 来调用。

You definitely do need call trustServiceUrl before sending the message.在发送消息之前,您肯定需要调用 trustServiceUrl。 In addition, you need to have additional properties on your activity, like the destination user or tenant id.此外,您需要在活动中具有其他属性,例如目标用户或租户 ID。 Please refer to the documents on this, and good starting places are here and here .请参考这方面的文档, 这里这里是很好的起点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM