Skip to content

Get Channels ​

GET /channel

Get the list of Telegram channels you follow, including channels you manage. The id from here works with Get Channel Detail, Get Channel Messages, or the channel field in Send Message.

Only channels (one-way broadcasts) show up here. Supergroups and basic groups are in Get Groups.

Endpoint Details ​

  • Base URL: https://api-zate.azickri.com
  • Headers: id and session-id
  • Requirement: the session must be connected (isConnected: true)

Headers ​

HeaderTypeRequiredDescription
idstringYesid from Create Session.
session-idstringYessessionId from Create Session.

Example Request ​

bash
curl "https://api-zate.azickri.com/channel" \
  -H "id: YOUR_ID" \
  -H "session-id: YOUR_SESSION_ID"
javascript
import axios from 'axios';

const response = await axios.get('https://api-zate.azickri.com/channel', {
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

console.log(response.data);
javascript
const response = await fetch('https://api-zate.azickri.com/channel', {
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "docs": [
    {
      "id": "-1001234567890",
      "name": "Cak Zate's Sate News",
      "username": "infosatecakzate",
      "picture": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ...",
      "isOwner": true,
      "created": "2025-06-07T15:15:51.000Z"
    },
    {
      "id": "-1009876543210",
      "name": "Late Night Food Club",
      "username": "",
      "picture": "",
      "isOwner": false,
      "created": "2025-03-02T09:20:11.000Z"
    }
  ]
}
json
{
  "statusCode": 400,
  "message": "invalid header"
}
json
{
  "statusCode": 404,
  "message": "session not found"
}
json
{
  "statusCode": 500,
  "message": "session not connected"
}
FieldTypeDescription
docsarrayList of channels.
docs[].idstringChannel ID, starting with -100.
docs[].namestringChannel name.
docs[].usernamestringPublic channel username without @. Empty for private channels.
docs[].picturestringSmall channel photo as a data URI. May be empty.
docs[].isOwnerbooleantrue if you created or administer the channel.
docs[].createdstringThe date your account joined the channel (ISO 8601).

Want to post to a channel?

Look for isOwner: true. You can only send messages to channels you manage, and admins also need posting rights.