Skip to content

Get Groups ​

GET /group

Get the list of Telegram groups you're in, both basic groups and supergroups. The id from here works with Get Group Detail, Get Group Members, or the group field in Send Message.

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/group" \
  -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/group', {
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

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

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

Response ​

json
{
  "docs": [
    {
      "id": "-1001234567890",
      "name": "Zate Community",
      "username": "komunitaszate",
      "description": "A place for Zate users to hang out",
      "picture": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ...",
      "created": "2025-06-07T15:15:51.000Z"
    },
    {
      "id": "-987654321",
      "name": "The Whole Family",
      "username": "",
      "description": "",
      "picture": "",
      "created": "2024-12-25T08:00:00.000Z"
    }
  ]
}
json
{
  "statusCode": 400,
  "message": "invalid header"
}
json
{
  "statusCode": 404,
  "message": "session not found"
}
json
{
  "statusCode": 500,
  "message": "session not connected"
}
FieldTypeDescription
docsarrayList of groups.
docs[].idstringGroup ID: -123... for basic groups, -100... for supergroups.
docs[].namestringGroup name.
docs[].usernamestringPublic group username without @. Empty for private and basic groups.
docs[].descriptionstringGroup description. Cached for 5 minutes.
docs[].picturestringSmall group photo as a data URI. May be empty.
docs[].createdstringThe date your account joined the group (ISO 8601).

A bit slow with many groups

Each group's description and photo are fetched from Telegram one by one. If you're in dozens of groups, the first response can take a few seconds. Later calls are faster because descriptions and photos are cached.