Chat component in Microsoft Graph Toolkit
Important
This component is in preview and is subject to change. The use of these components in production applications is not supported.
Note
This component is currently only available as a React component and doesn't have a web component equivalent.
Note
This feature takes advantage of real-time endpoints, high-capacity APIs and is subject to the same billing model described in the payment models and licensing requirements for Microsoft Teams APIs.
The chat component enables the user to have 1:1 or group conversations. This component doesn't support channel conversations. The component allows for rendering conversations and authoring new messages. All data is stored in Microsoft Teams.
Example
The following example displays a conversation using the mgt-chat
component.
Properties
Attribute | Property | Description |
---|---|---|
chat-id | chatId | A string ID to set the 1:1 or group conversation to render. Required. |
CSS custom properties
The mgt-chat
component doesn't define CSS custom properties.
Events
The mgt-chat
component doesn't offer any events.
Templates
The mgt-chat
component doesn't offer templates to override.
Microsoft Graph permissions
This control uses the following Microsoft Graph APIs and permissions.
Configuration | Permission | API |
---|---|---|
chatId is set |
Chat.ReadBasic, Chat.Read, ChatMessage.Read, Chat.ReadWrite, ChatMember.ReadWrite | /chats/{id}/messages, /chats/{id}/messages, /chats/{id}/messages/{messageId}, /me/chats/{id}/messages/{messageId}/softDelete, /chats/{id}/members/{membershipId}, /chats/{id}/members, /chats/{id}/messages/{messageId}/hostedContents/{hostedContentId}, /chats/{id} |
Subcomponents
The mgt-chat
component consists of one or more subcomponents that might require other permissions than the ones listed previously. For more information, see the documentation for each subcomponent:
Authentication
The mgt-chat
component uses the global authentication provider described in the authentication documentation.
Cache
The mgt-chat
component caches chat messages and related metadata.
Localization
The mgt-chat
component doesn't expose any localization variables.
Known issues
- The
mgt-chat
component doesn't support the samechatId
being used in multiple instances of the component or across multiple tabs. - The
mgt-chat
component doesn't support theming and won't respect browsers preferences.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기