Client may specify suggested reactions

This commit is contained in:
Tim Maurer 2023-10-31 10:22:19 -07:00
parent 4b9f13d983
commit 5b5fef5141

21
25.md
View File

@ -74,3 +74,24 @@ content as an emoji if shortcode is specified.
``` ```
The content can be set only one `:shortcode:`. And emoji tag should be one. The content can be set only one `:shortcode:`. And emoji tag should be one.
Reaction Suggestions
--------------------
A client may specify suggested reactions in the tags of any event. These may be
emojis, or emoji shortcodes, with definitions included in tags as described above.
Clients MAY prompt users to use these suggestions to react.
```json
{
"kind": 1,
"content": "Why did the chicken cross the road?",
"tags": [
["reaction", ":joy:"],
["reaction", ":man-shrugging:"],
["reaction", "bananas"],
["emoji", "bananas", "https://example.com/emoji/bananas.png"]
],
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
"created_at": 1682790000
}
```