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 Member Management API

Methods for managing chat members and administrators

Telegram Member 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 Member 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 7 operations across 7 paths, and defines 2 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}.

7 operations 7 paths 2 schemas 7 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 Member 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 7

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

Member Management 7

Methods for managing chat members and administrators

POST
/banChatMember
Ban Chat Member
banChatMember body → 200
POST
/unbanChatMember
Unban Chat Member
unbanChatMember body → 200
POST
/restrictChatMember
Restrict Chat Member
restrictChatMember body → 200
POST
/promoteChatMember
Promote Chat Member
promoteChatMember body → 200
POST
/setChatAdministratorCustomTitle
Set Chat Administrator Custom Title
setChatAdministratorCustomTitle body → 200
POST
/approveChatJoinRequest
Approve Chat Join Request
approveChatJoinRequest body → 200
POST
/declineChatJoinRequest
Decline Chat Join Request
declineChatJoinRequest body → 200

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are ChatPermissions (11 properties), BooleanResponse (2 properties). Each schema is shown below with its type and property counts.

ChatPermissions
object
11 properties
BooleanResponse
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

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

Other APIs Telegram publishes across the network.

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