Forum Discussion
Lakshmi_145
Sep 26, 2023Iron Contributor
Send "hi xyz 😊" from teams channel to direct line
Can we send messages with smiley from a teams channel to direct line using the connector client
Lakshmi_145
Sep 26, 2023Iron Contributor
Thanks for the response.
I have tried the same by giving the text as the activity.attachment content which we get from sender in c#.
It worked for teams to teams but didnt worked for teams to directline
LeonPavesic
Sep 27, 2023Silver Contributor
Hi Lakshmi_145,
The Teams connector client library may be converting the smiley to a different format when sending it to Direct Line.
One possible workaround would be to send the smiley as a Unicode character instead of as a smiley emoji.
For example, you can use the Unicode code point for the smiling face emoji (U+1F604) like this:
message.text = "hi xyz \U0001F604";
Make sure to set the message's text field with the Unicode code point for the emoji you want to include.
*If you still encounter issues with smileys not displaying correctly in Direct Line despite encoding them properly, it might be worth checking if Direct Line has specific requirements or limitations regarding emoji display. You can refer to the Direct Line documentation or seek support from the Direct Line team for further assistance with emoji handling in your specific scenario.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)