From 5b5fef5141e41e8a8cab6de7a10144ec78cff9be Mon Sep 17 00:00:00 2001 From: Tim Maurer Date: Tue, 31 Oct 2023 10:22:19 -0700 Subject: [PATCH] Client may specify suggested reactions --- 25.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/25.md b/25.md index 7b29140a..b6adb721 100644 --- a/25.md +++ b/25.md @@ -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. + +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 +} +```