使用msteams URI方案与特定联系人启动团队聊天

时间:2018-08-23 23:35:54

标签: microsoft-teams

我可以使用“ sip:example@emailaddress.com”打开与指定联系人的团队聊天,但是“ msteams:example@emailaddress.com”仅打开该应用;它不会与指定的人打开聊天。

是否存在一种计划,该计划允许使用类似于“ skype:example@emailaddress.com”的“ msteams:” uri与某人打开聊天?

3 个答案:

答案 0 :(得分:1)

更新后的答案 试试这个<a href="MSTeams:/l/chat/0/0?users=username@domain.com">Teams Chat</a>

这将打开与ms团队中的用户的私人对话

答案 1 :(得分:0)

当前,Microsoft Teams不支持此功能,但已在我们的路线图上。

答案 2 :(得分:0)

https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links

找到“聊天”深层链接,并将其嵌入其他地方。

示例:可以指定一个或多个用户。

示例:https://teams.microsoft.com/l/chat/0/0?users=joe@contoso.com,bob@contoso.com&topicName=Prep%20For%20Meeting%20Tomorrow&message=Hi%20folks%2C%20kicking%20off%20a%20chat%20about%20our%20meeting%20tomorrow

查询参数为:

users The comma-separated list of user IDs representing the participants of the chat. The user performing the action is always included as a participant. The User ID field currently only supports the Azure AD UserPrincipalName (typically an email address).
topicName An optional field for chat's display name, in the case of a chat with 3 or more users. If this field is not specified, the chat's display name will be based on the names of the participants.
message An optional field for the message text that you want to insert into the current user's compose box while the chat is in a draft state.

请注意,仅当用户在您的租户中时,该链接才会打开聊天。对于联盟用户,只有在您之前有一个聊天窗口时,它才会打开。