Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji no longer work in Webhook or Graph API #10832

Open
GitWatin opened this issue May 2, 2024 · 5 comments
Open

Emoji no longer work in Webhook or Graph API #10832

GitWatin opened this issue May 2, 2024 · 5 comments
Assignees
Labels
bug teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@GitWatin
Copy link

GitWatin commented May 2, 2024

Steps to reproduce

Hello,

I'm using Powershell to update my teams status message via Microsoft Graph and command Set-MgUserPresenceStatusMessage

I would like to send emoji in my message and I noticed that emoji character with unicode after 1FXX doesn't work

For exemple with code ▶ it's work

image

And with code 🏠 (reffering to the house) it doesn't work

image

Anyone have the same issue ?

$Test = "🏠"

Function CreateTeamsObject {
	Param (
		[string]$message
	)
	$DayDate=Get-Date -Format "yyyy-MM-dd" | Out-String
	$EndDay="T23:59:00"
	$EndOfDay=$DayDate+$EndDay
	$params = @{
		statusMessage = @{
			message        = @{
				content     = $message
				contentType = "text"
			}
			expiryDateTime = @{
				dateTime = $EndOfDay
				timeZone = "Europe/Paris"
			}
		}
	}
	Set-MgUserPresenceStatusMessage -UserId $userId -BodyParameter $params


CreateTeamsObject -message "I am currently at Home $test  <pinnednote></pinnednote>"

Expected behavior

Image displayed as pictures, not code

Actual behavior

Emoji are displayed as number, not picture

Error details

No response

@ChetanSharma-msft ChetanSharma-msft added the teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label label May 3, 2024
@ChetanSharma-msft
Copy link
Collaborator

Hello @GitWatin - Thanks for raising your query.
Could you please conform if it was working previously because it may not be supported?

It is also working with other codes?

@Prasad-MSFT Prasad-MSFT self-assigned this May 3, 2024
@GitWatin
Copy link
Author

GitWatin commented May 3, 2024

Hello @ChetanSharma-msft

Yes it work in the past. I found some topics on StackOverFlow regarding this issues.
Seems to be since 2 or 3 Teams release version.

I don't try with other code.

Regarding the emoji, I use this list : https://www.unicode.org/emoji/charts/full-emoji-list.html

@Prasad-MSFT
Copy link
Collaborator

Prasad-MSFT commented May 3, 2024

Hi @GitWatin - We tried to repro this issue by sending message having unicode emoji and observed that, emoji character with unicode after 1FXX doesn't work.

For example, emoji with unicode U+2764 works.

{
  "type": "message",
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.adaptive",
      "contentUrl": null,
      "content": {
        "type": "AdaptiveCard",
        "$schema": "[http://adaptivecards.io/schemas/adaptive-card.json"](http://adaptivecards.io/schemas/adaptive-card.json%22),
        "version": "1.4",
        "body": [
          {
            "type": "TextBlock",
            "wrap": true,
            "text": "Emoji tester: &#x2764;"
          }
        ]
      }
    }
  ]
}

image

However, emoji with unicode U+1F3E0 doesn't work.

{
  "type": "message",
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.adaptive",
      "contentUrl": null,
      "content": {
        "type": "AdaptiveCard",
        "$schema": "[http://adaptivecards.io/schemas/adaptive-card.json"](http://adaptivecards.io/schemas/adaptive-card.json%22),
        "version": "1.4",
        "body": [
          {
            "type": "TextBlock",
            "wrap": true,
            "text": "Emoji tester: &#x1F3E0;"
          }
        ]
      }
    }
  ]
}

image

Checked with Microsoft Teams version 24116.2502.2841.3203.
The client version is 49/24050218100.

In Mobile devices (Android):
image

@GitWatin
Copy link
Author

GitWatin commented May 3, 2024

Hey @Prasad-MSFT

It's exactly the issues I encounter, not via webhook but microsoft graph but I assume it's the same "bug"

Thanks a lot for your help

There is my Teams version :
image

@Prasad-MSFT
Copy link
Collaborator

@GitWatin - We have raised a bug for the same and assigned to engineering team We will inform you once we get any further update from engineering team.

Thanks!

@Prasad-MSFT Prasad-MSFT added the bug label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

No branches or pull requests

3 participants