Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Telegram Chat Management API

Methods for managing chats and chat settings

Telegram Chat Management API is one of 10 APIs that Telegram publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Chat Management. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, a GitHub repository, authentication docs, and a changelog.

This API exposes 11 operations across 11 paths, and defines 8 schemas. It is described by OpenAPI 3.0.3, at version 9.5.

Requests are made against a single base URL, https://api.telegram.org/bot{token}.

11 operations 11 paths 8 schemas 11 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
9.5
Base URL
https://api.telegram.org/bot{token}
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

Telegram Chat Management API declares 1 security scheme for authenticating requests. An API key is passed in the path as token (BotToken). By default, every request must be authenticated.

  • BotToken — Bot authentication token obtained from @BotFather (embedded in URL path)

Paths & Operations 11

Across 11 paths, the API surfaces 11 operations — 11 POST. Each is listed below with its method, path, parameters, and response codes.

Chat Management 11

Methods for managing chats and chat settings

POST
/getChat
Get Chat
getChat body → 200
POST
/getChatAdministrators
Get Chat Administrators
getChatAdministrators body → 200
POST
/getChatMemberCount
Get Chat Member Count
getChatMemberCount body → 200
POST
/getChatMember
Get Chat Member
getChatMember body → 200
POST
/leaveChat
Leave Chat
leaveChat body → 200
POST
/setChatPhoto
Set Chat Photo
setChatPhoto body → 200
POST
/deleteChatPhoto
Delete Chat Photo
deleteChatPhoto body → 200
POST
/setChatTitle
Set Chat Title
setChatTitle body → 200
POST
/setChatDescription
Set Chat Description
setChatDescription body → 200
POST
/pinChatMessage
Pin Chat Message
pinChatMessage body → 200
POST
/unpinChatMessage
Unpin Chat Message
unpinChatMessage body → 200

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are Chat (9 properties), User (7 properties), ChatMembersResponse (2 properties), IntegerResponse (2 properties). Each schema is shown below with its type and property counts.

ChatMember
object
2 properties 2 required
User
object
7 properties 3 required
ChatResponse
object
2 properties
IntegerResponse
object
2 properties
ChatMembersResponse
object
2 properties
Chat
object
9 properties 2 required
BooleanResponse
object
2 properties
ChatMemberResponse
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

telegram-chat-management-api-openapi.yml Raw ↑

Other APIs Telegram publishes across the network.

Telegram TDLib (Telegram Database Library)
Telegram Bot Info API
Telegram Getting Updates API
Telegram Invites API
Telegram Member Management API
Telegram Message Editing API
Telegram Messaging API
Telegram Payments API
Telegram Stickers API