简体   繁体   English

Microsoft Teams 将 URL 重定向到线程或组对话

[英]Microsoft Teams Redirect URL to a Thread or Group Conversation

I've been using the next URL to redirect any user to their private chat with our MS Teams App:我一直在使用下一个 URL 将任何用户重定向到他们与我们的 MS Teams 应用程序的私人聊天:

https://teams.microsoft.com/l/chat/0/0?users=28:b9cc7986-dd56-4b57-ab7d-9c4e5288b775

with b9cc7986-dd56-4b57-ab7d-9c4e5288b775 being the App Id of out bot ( sample App Id in this case ).其中b9cc7986-dd56-4b57-ab7d-9c4e5288b775是 out bot 的 App Id(在本例中为示例 App Id )。

This URL will open the private MS Teams Chat with the user clicking the URL and our App on any client (Mobile, Desktop, Browser) without opening any web pages if not needed.此 URL 将打开私人 MS 团队聊天,用户单击 URL 和我们在任何客户端(移动设备、桌面、浏览器)上的应用程序,无需打开任何 Z2567A5EC9705EB7AC2C984033E0619 页面。 The clients can handle the URL themselves.客户可以自己处理 URL。 You can try it with this provided sample URL.您可以使用此提供的示例 URL 进行尝试。

What would be a proper way to be able to redirect to a group conversation or thread ?能够重定向到群组对话或线程的正确方法是什么?

I've thought about using the Conversation Id (or other Ids available in our MS Teams App) or something but couldn't find any good documentation or examples online.我曾考虑过使用对话 ID(或我们的 MS Teams 应用程序中可用的其他 ID)或其他东西,但在网上找不到任何好的文档或示例。

You can use Deep Links to accomplish that, specifically deep linking to a chat .您可以使用 Deep Links 来完成此操作,特别是与聊天的深度链接 As shown in that link, you can link to specific users, but also set a conversation topic as well as an initial message.如该链接所示,您可以链接到特定用户,还可以设置对话主题以及初始消息。 One thing that's often overlooked, just fyi, is this sentence:经常被忽略的一件事,仅供参考,是这句话:

New chats are created in draft state until the user sends the first message新聊天在草稿 state 中创建,直到用户发送第一条消息

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

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