https://stackoverflow.com/a/45890852/8413869表情符号在SimpleResponse
从上面的回答,我知道,表情符号,可在按钮格式的文本进行传递。
我试图通过unicode简单的回应,但没有运气。
....."data": {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"ssml": "<speak>Hello. How are you ? </speak>",
"displayText": "Hello U+1F600., how are you ? "
}
}
],
"suggestions": [],
"linkOutSuggestion": {}
}
}
}.....
有没有办法做到这一点?
谢谢,但我使用java webhook并准备字符串。我不认为我可以在字符串中复制和粘贴这个表情符号。 – Sukh
这是一个关于如何在Java字符串中包含表情符号的StackOverflow问题:https://stackoverflow.com/questions/26231263/create-string-with-emoji-unicode-flag-countries – matthewayne
谢谢, 我使它适用于此uni code“\ uD83D \ uDE00” 我刚从https://emojipedia.org/复制了emoji,它给了我这个unicode – Sukh