You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET https://graph.microsoft.com/v1.0/chats/19:e2ed97baac8e4bffbb91299a38996790@thread.v2/messages/1727903166936
548
+
GET https://graph.microsoft.com/v1.0/chats/19:80a7ff67c0ef43c19d88a7638be436b1@thread.v2/messages/1725986575123
549
549
```
550
550
551
551
#### Response
552
552
553
-
The following example shows the response. The message body contains a forwarded message as an attachment. The **contentType** for the forwarded message is identified as `forwardedMessageReference`. The original message that was forwarded is also available in the attachment **content**.
553
+
The following example shows the response. The message body contains an @mention for everyone in a group chat that is represented by the `<at></at>` tag. The **conversationIdentityType** property is set to `chat`in the **conversation** identity of the **mentioned** object.
Copy file name to clipboardExpand all lines: api-reference/v1.0/resources/chatmessage.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ Represents an individual chat message within a [channel](channel.md) or [chat](c
75
75
|lastModifiedDateTime|dateTimeOffset|Read only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed. |
76
76
|lastEditedDateTime|dateTimeOffset|Read only. Timestamp when edits to the chat message were made. Triggers an "Edited" flag in the Teams UI. If no edits are made the value is `null`.|
77
77
|locale|string|Locale of the chat message set by the client. Always set to `en-us`.|
78
-
|mentions|[chatMessageMention](chatmessagemention.md) collection| List of entities mentioned in the chat message. Supported entities are: user, bot, team, and channel.|
78
+
|mentions|[chatMessageMention](chatmessagemention.md) collection| List of entities mentioned in the chat message. Supported entities are: user, bot, team, channel, chat, and tag.|
79
79
|messageHistory|[chatMessageHistoryItem](../resources/chatmessagehistoryitem.md) collection|List of activity history of a message item, including modification time and actions, such as reactionAdded, reactionRemoved, or reaction changes, on the message.
80
80
|messageType|chatMessageType|The type of chat message. The possible values are: `message`, `chatEvent`, `typing`, `unknownFutureValue`, `systemEventMessage`. Note that you must use the `Prefer: include-unknown-enum-members` request header to get the following value in this [evolvable enum](/graph/best-practices-concept#handling-future-members-in-evolvable-enumerations): `systemEventMessage`.|
81
81
|policyViolation |[chatMessagePolicyViolation](chatmessagepolicyviolation.md)|Defines the properties of a policy violation set by a data loss prevention (DLP) application.|
Copy file name to clipboardExpand all lines: api-reference/v1.0/resources/chatmessagemention.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "chatMessageMention resource type"
3
-
description: "Represents a mention in a chatMessage entity. The mention can be to a user, team, bot or channel. "
3
+
description: "Represents a mention in a chatMessage entity."
4
4
ms.localizationpriority: medium
5
5
author: "RamjotSingh"
6
6
ms.subservice: "teams"
@@ -12,7 +12,7 @@ ms.date: 09/16/2024
12
12
13
13
Namespace: microsoft.graph
14
14
15
-
Represents a mention in a [chatMessage](chatmessage.md) entity. The mention can be to a [user](user.md), [team](team.md), bot, or [channel](channel.md).
15
+
Represents a mention in a [chatMessage](chatmessage.md) entity. The mention can be to a [user](user.md), [team](team.md), bot, [channel](channel.md), or [chat](chat.md).
16
16
17
17
In a **chatMessage** object that contains one or more mentions, the message body **content** property represents the chat message in HTML. It encloses the **mentionText** of each mention in an HTML `at` element, with an `id` attribute that corresponds to the **id** property of the mention.
18
18
@@ -35,7 +35,7 @@ For a fuller context of the example, see [List channel message replies](../api/c
35
35
| Property | Type |Description|
36
36
|:---------------|:--------|:----------|
37
37
|id|Int32|Index of an entity being mentioned in the specified **chatMessage**. Matches the {index} value in the corresponding `<at id="{index}">` tag in the message body.|
38
-
|mentioned|[chatMessageMentionedIdentitySet](chatmessagementionedidentityset.md)|The entity (user, application, team, or channel) that was @mentioned.|
38
+
|mentioned|[chatMessageMentionedIdentitySet](chatmessagementionedidentityset.md)|The entity (user, application, team, channel, or chat) that was @mentioned.|
39
39
|mentionText|string|String used to represent the mention. For example, a user's display name, a team name.|
Copy file name to clipboardExpand all lines: api-reference/v1.0/resources/chatmessagementionedidentityset.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Inherits from [identitySet](../resources/identityset.md).
21
21
|Property|Type|Description|
22
22
|:---|:---|:---|
23
23
|application|[identity](../resources/identity.md)|Inherited from [identitySet](../resources/identityset.md). If present, represents an application (for example, bot) @mentioned in a [message](../resources/chatmessage.md).|
24
-
|conversation|[teamworkConversationIdentity](../resources/teamworkconversationidentity.md)|If present, represents a conversation (for example, teamor channel) @mentioned in a [message](../resources/chatmessage.md).|
24
+
|conversation|[teamworkConversationIdentity](../resources/teamworkconversationidentity.md)|If present, represents a conversation (for example, team, channel, or chat) @mentioned in a [message](../resources/chatmessage.md).|
25
25
|device|[identity](../resources/identity.md)|Inherited from [identitySet](../resources/identityset.md). Not used because it's not supported to @mention devices.|
26
26
|user|[identity](../resources/identity.md)|Inherited from [identitySet](../resources/identityset.md). If present, represents a user @mentioned in a [message](../resources/chatmessage.md).|
Copy file name to clipboardExpand all lines: changelog/Microsoft.Teams.Core.json
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5699,6 +5699,24 @@
5699
5699
"SubArea": "Messaging"
5700
5700
},
5701
5701
{
5702
+
"ChangeList": [
5703
+
{
5704
+
"Id": "f9666fc8-6101-4ca6-bd26-3f11395ffc5f",
5705
+
"ApiChange": "Property",
5706
+
"ChangedApiName": "mentions",
5707
+
"ChangeType": "Change",
5708
+
"Description": "Added `chat` as a supported value for the **mentions** property in the [chatMessage](https://learn.microsoft.com/en-us/graph/api/resources/chatmessage?view=graph-rest-1.0) resource.",
Copy file name to clipboardExpand all lines: concepts/whats-new-overview.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,11 @@ For details about previous updates to Microsoft Graph, see [Microsoft Graph what
17
17
> [!IMPORTANT]
18
18
> Features in _preview_ status are subject to change without notice, and might not be promoted to generally available (GA) status. Don't use preview features in production apps.
19
19
20
-
## January 2025: New and generally available
20
+
## January 2025: New and generally available
21
21
22
22
### Teamwork and communications | Messaging
23
23
24
-
[Get](/graph/api/chatmessage-get#example-6-get-a-chat-message-with-a-forwarded-message) a chat message that has a forwarded message as an attachment.
24
+
[Get](/graph/api/chatmessage-get#example-5-get-a-chat-message-with-an--for-everyone) a chat message with an @mention for everyone.
0 commit comments