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

Launch Teams chat with particular contact using msteams URI scheme

我可以使用 'sip:example@emailaddress.com' 打开与指定联系人的 Teams 聊天,但 'msteams:example@emailaddress.com' 只能打开应用程序;它不会打开与指定个人的聊天。

是否存在或将会存在允许使用类似于 'skype:example@emailaddress.com' 的 'msteams:' uri 与个人进行聊天的方案?

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

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

找到 Chat deeplink,然后嵌入其他地方。

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

示例: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.

请注意,如果用户在您的租户中,link 只会打开聊天。对于联盟用户,它只会在您之前与他们聊天 window 时打开。

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

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