-
Notifications
You must be signed in to change notification settings - Fork 0
/
misc.go
40 lines (38 loc) · 934 Bytes
/
misc.go
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
30
31
32
33
34
35
36
37
38
39
40
package api_paths
import "github.com/tada-team/tdproto"
var MiscPaths = []PathSpec{
{
Path: "/api/v4/addr",
Get: &OperationSpec{
Response: "",
Description: "Returns client address for debuging purposes.",
ResponseDescription: "Address of the server.",
SecurityIsOptional: true,
},
},
{
Path: "/api/v4/ping",
Get: &OperationSpec{
Response: "",
Description: "Ping the server.",
ResponseDescription: "Set to ``\"pong\"``.",
SecurityIsOptional: true,
},
},
{
Path: "/features.json",
Get: &OperationSpec{
Response: tdproto.Features{},
Description: "Get the server features information.",
SecurityIsOptional: true,
},
},
{
Path: "/api/v4/badge",
Get: &OperationSpec{
Response: 0,
Description: "Return number of unread messages.",
ResponseDescription: "Number of unread messages",
},
},
}