mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-15 03:46:23 +00:00
30 lines
365 B
Markdown
30 lines
365 B
Markdown
|
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>]
|
||
|
]
|
||
|
}
|
||
|
```
|