How to use emojis in api chat message
I am trying to post a chat message containing an emoji to a channel using the space API.
api.space().chats.messages.sendMessage(recipient, ChatMessage.Text("Hello :smiley:"))
The emoji doesn't appear and all I get is plain text.
How do I make sure the emoji shortcode actually gets converted to an emoji
Please sign in to leave a comment.
Kraulain - hi,
Thank you for your question!
We really have an issue with that, so you can subscribe to the ticket to follow the updates.
For now, I can offer you a workaround - please try to add zero-width space symbols so that emoji text representation will follow this template:
Please let me know if any additional help is needed.
Margarita Kolotilova
JetBrains
http://www.jetbrains.com
The Drive to Develop
The workaround worked well.
Thank you.