Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit ed5ff62

Browse files
jpeng-msJoshuaLai
andauthored
[Communication][Chat] Added new attachment type of "file" (Azure#23662)
* Create communicationserviceschat.json * [Update] New tag in readme * added examples * Update readme.md * updated spec * added file attachment example * fixed unknown word issue * init * removing 2023-06-01 * Update readme.md * Update communicationserviceschat.json * Added teamsImage (Azure#23793) --------- Co-authored-by: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com>
1 parent 389d3c2 commit ed5ff62

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

specification/communication/data-plane/Chat/preview/2023-07-01-preview/communicationserviceschat.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,8 @@
12891289
"x-ms-enum": {
12901290
"name": "ChatMessageType",
12911291
"modelAsString": true
1292-
}
1292+
},
1293+
"example": "html"
12931294
},
12941295
"SendChatMessageRequest": {
12951296
"description": "Details of the message to send.",
@@ -1301,7 +1302,7 @@
13011302
"content": {
13021303
"description": "Chat message content.",
13031304
"type": "string",
1304-
"example": "Come one guys, lets go for lunch together."
1305+
"example": "<p>Come one guys, lets go for lunch together.</p>"
13051306
},
13061307
"senderDisplayName": {
13071308
"description": "The display name of the chat message sender. This property is used to populate sender name for push notifications.",
@@ -1360,7 +1361,9 @@
13601361
"AttachmentType": {
13611362
"description": "The type of attachment.",
13621363
"enum": [
1363-
"teamsInlineImage"
1364+
"teamsInlineImage",
1365+
"teamsImage",
1366+
"file"
13641367
],
13651368
"type": "string",
13661369
"x-ms-enum": {
@@ -1380,7 +1383,7 @@
13801383
"id": {
13811384
"description": "Id of the attachment",
13821385
"type": "string",
1383-
"example": "A27C7079-626F-4D23-8BEE-582F2C376B5A"
1386+
"example": "f508ce15-e878-431f-b871-f530cac5331d"
13841387
},
13851388
"attachmentType": {
13861389
"$ref": "#/definitions/AttachmentType"
@@ -1416,7 +1419,7 @@
14161419
"message": {
14171420
"description": "Chat message content for messages of types text or html.",
14181421
"type": "string",
1419-
"example": "Come one guys, lets go for lunch together."
1422+
"example": "<p>Come one guys, lets go for lunch together.</p><img id=\"f508ce15-e878-431f-b871-f530cac5331d\">"
14201423
},
14211424
"topic": {
14221425
"description": "Chat message content for messages of type topicUpdated.",

0 commit comments

Comments
 (0)