Repository navigation
API
Petr edited this page Jun 20, 2018
·
34 revisions
{
"id": 0, // required
"action": "XXX" // required
}{
"session_id": "XXX" // optional
}{
"session_id": "XXX",
"connection_id": "XXX",
"expires_in": 172800
}After login button has been pressed and client pressed start in bot
{
"user_id": 123456789,
"first_name": "XXX",
"username": "XXX",
"language_code": "XXX",
"photo": "XXX"
}{
"count": 0, // optional
"offset": 0, // optional
"title": "XXX", // optional
"category": "XXX", // optional
"members": [0, 0], // optional, must be .length === 2
"cost": [0, 0] // optional, must be .length === 2
}{
"data": {
"items": [], // array of channels
"categories": [
{
"category": "XXX",
"count": 0
}
],
"total": 0,
"max_members": 0,
"max_cost": 0
}
}{
"username": "XXX" // required
}{
"data": {
"channel": {}
}
}{
"username": "XXX" // required
}{
"is_admin": true
OR
"error": "XXX"
}{
"username": "XXX" // required
}{
"updated": true
OR
"error": "channel does not exist"
}