diff options
Diffstat (limited to '29.md')
| -rw-r--r-- | 29.md | 34 |
1 files changed, 1 insertions, 33 deletions
| @@ -64,39 +64,7 @@ These are the events expected to be found in NIP-29 groups. | |||
| 64 | 64 | ||
| 65 | ### Normal user-created events | 65 | ### Normal user-created events |
| 66 | 66 | ||
| 67 | These events generally can be sent by all members of a group and they require the `h` tag to be present so they're attached to a specific group. | 67 | Groups may accept any event kind, including chats, threads, long-form articles, calendar, livestreams, market announcements and so on. These should be as defined in their respective NIPs, with the addition of the `h` tag. |
| 68 | |||
| 69 | - _chat message_ (`kind:9`) | ||
| 70 | |||
| 71 | This is the basic unit of a _chat message_ sent to a group. | ||
| 72 | |||
| 73 | ```jsonc | ||
| 74 | "kind": 9, | ||
| 75 | "content": "hello my friends lovers of pizza", | ||
| 76 | "tags": [ | ||
| 77 | ["h", "<group-id>"], | ||
| 78 | ["previous", "<event-id-first-chars>", "<event-id-first-chars>", /*...*/] | ||
| 79 | ] | ||
| 80 | // other fields... | ||
| 81 | ``` | ||
| 82 | |||
| 83 | - _thread root post_ (`kind:11`) | ||
| 84 | |||
| 85 | This is the basic unit of a forum-like root thread post sent to a group. | ||
| 86 | |||
| 87 | ```jsonc | ||
| 88 | "kind": 11, | ||
| 89 | "content": "hello my friends lovers of pizza", | ||
| 90 | "tags": [ | ||
| 91 | ["h", "<group-id>"], | ||
| 92 | ["previous", "<event-id-first-chars>", "<event-id-first-chars>", /*...*/] | ||
| 93 | ] | ||
| 94 | // other fields... | ||
| 95 | ``` | ||
| 96 | |||
| 97 | - _other events_: | ||
| 98 | |||
| 99 | Groups may also accept other events, like [NIP-22](22.md) comments as threaded replies to both chats messages and threads, long-form articles, calendar, livestreams, market announcements and so on. These should be as defined in their respective NIPs, with the addition of the `h` tag. | ||
| 100 | 68 | ||
| 101 | ### User-related group management events | 69 | ### User-related group management events |
| 102 | 70 | ||