mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-09-01 05:50:47 -04:00
Break out chat and threads from nip 29 (#1591)
This commit is contained in:
29
C7.md
Normal file
29
C7.md
Normal file
@@ -0,0 +1,29 @@
|
||||
NIP-C7
|
||||
======
|
||||
|
||||
Chats
|
||||
-----
|
||||
|
||||
`draft` `optional`
|
||||
|
||||
A chat message is a `kind 9` event.
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 9,
|
||||
"content": "GM",
|
||||
"tags": []
|
||||
}
|
||||
```
|
||||
|
||||
A reply to a `kind 9` is an additional `kind 9` which quotes the parent using a `q` tag.
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 9,
|
||||
"content": "nostr:nevent1...\nyes",
|
||||
"tags": [
|
||||
["q", <event-id>, <relay-url>, <pubkey>]
|
||||
]
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user