upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/C7.md
blob: 0d94f18b6a7ba2c0531cda9739cd058ade7135de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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>]
  ]
}
```