github.com/tada-team/tdproto@v1.51.57/codegen/api_paths/misc.go (about) 1 package api_paths 2 3 import "github.com/tada-team/tdproto" 4 5 var MiscPaths = []PathSpec{ 6 { 7 Path: "/api/v4/addr", 8 Get: &OperationSpec{ 9 Response: "", 10 Description: "Returns client address for debuging purposes.", 11 ResponseDescription: "Address of the server.", 12 SecurityIsOptional: true, 13 }, 14 }, 15 { 16 Path: "/api/v4/ping", 17 Get: &OperationSpec{ 18 Response: "", 19 Description: "Ping the server.", 20 ResponseDescription: "Set to ``\"pong\"``.", 21 SecurityIsOptional: true, 22 }, 23 }, 24 { 25 Path: "/features.json", 26 Get: &OperationSpec{ 27 Response: tdproto.Features{}, 28 Description: "Get the server features information.", 29 SecurityIsOptional: true, 30 }, 31 }, 32 { 33 Path: "/api/v4/badge", 34 Get: &OperationSpec{ 35 Response: 0, 36 Description: "Return number of unread messages.", 37 ResponseDescription: "Number of unread messages", 38 }, 39 }, 40 }