我有一个应用程序,其中包含一个机器人在微软团队,使用机器人框架构建。我需要我的应用程序能够让用户发送消息到特定的通道和线程。我可以使用“主动消息传递”功能对我的机器人执行此操作,但消息是由机器人发送的,而不是用户。有没有办法实现这一点,就像用户发送消息一样?
发布于 2019-10-29 16:09:31
你不需要使用机器人。
只需试用此Microsoft Graph API终结点(测试版):
POST https://graph.microsoft.com/beta/teams/TEAM_ID/channels/CHANNEL_ID/chatThreads
{
"RootMessage": {
"body": {
"contentType": 1,
"content": "Hello World!"
}
}
}请记住,您需要实现Authentication on behalf of a user。
https://stackoverflow.com/questions/58602926
复制相似问题