https://docs.microsoft.com/en-us/graph/api/channel-get-message?view=graph-rest-beta&tabs=http
При получении сообщения через Graph API, если у сообщения есть реакции, displayName всегда равно null, но возвращается идентификатор. Например, если в сообщении есть упоминания, displayName успешно возвращается. URL запроса: https://graph.microsoft.com/beta/teams/teamID/channels/channeID/messages/messageID/
Тело ответа: (Отредактировал некоторую информацию). Он также отлично работает в объекте 'from.
{
"@odata.context": "https://graph/redacted",
"id": "redacted"
"replyToId": null,
"etag": "redacted",
"messageType": "message",
"createdDateTime": "2021-01-23T05:50:30.613Z",
"lastModifiedDateTime": null,
"deletedDateTime": null,
"subject": null,
"summary": null,
"importance": "normal",
"locale": "en-us",
"webUrl": ""redacted"",
"policyViolation": null,
"from": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "449333353311fdc",
"displayName": ""redacted"",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "html",
"content": "
This is tdt>
\n
"
},
"attachments": [],
"mentions": [
{
"id": 0,
"mentionText": "redacted"",
"mentioned": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "1d1231231bca0e",
"displayName": "redacted (works fine)",
"userIdentityType": "aadUser"
}
}
}
],
"reactions": [
{
"reactionType": "laugh",
"createdDateTime": "2020-01-24T01:13:18.41Z",
"user": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "962d9ergargaeeb7",
"displayName": null,
"userIdentityType": "aadUser"
}
}
},
{
"reactionType": "like",
"createdDateTime": "2020-01-23T05:50:41.838Z",
"user": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "449aa77d-4afawdawdadw11fdc",
"displayName": null,
"userIdentityType": "aadUser"
}
}
}
]
}