Skip to main content
This section covers all administrative and management methods for chats and members in the Telegram Bot API.
Note: Most methods here require your bot to be an administrator in the target group or channel.

Member Management

banChatMember

Bans a user from a group, supergroup, or channel. The user can rejoin via invite link unless revoke_messages is used.
BLP Example

unbanChatMember

Unbans a previously banned user.
BLP Example

restrictChatMember

Restricts what a user can do in a supergroup. ChatPermissions fields (all Boolean):
BLP Example

promoteChatMember

Promotes or demotes a user as administrator in a supergroup or channel.
BLP Example

setChatAdministratorCustomTitle

Sets a custom title (badge) for an admin promoted by the bot.
BLP Example

banChatSenderChat

Bans a channel from posting in a supergroup or channel.
BLP Example

unbanChatSenderChat

Unbans a previously banned channel.
BLP Example

Chat Management

setChatPermissions

Sets the default permissions for all non-admin members.
BLP Example

Generates a new primary invite link, revoking the previous one.
BLP Example

Creates a custom invite link with optional expiry and member limits.
BLP Example

Edits a non-primary invite link created by the bot.
BLP Example

Revokes an invite link. Users who already joined via this link stay in the chat.
BLP Example

Creates a subscription invite link for a channel. Users joining via this link will need to pay for the subscription.
BLP Example

Edits a subscription invite link.
BLP Example

approveChatJoinRequest

Approves a pending join request.
BLP Example

declineChatJoinRequest

Declines a pending join request.
BLP Example

answerChatJoinRequestQuery

Use this method to respond to a join request query.

setChatPhoto

Sets a new profile photo for the chat.
BLP Example

deleteChatPhoto

Deletes the chat’s current profile photo.
BLP Example

setChatTitle

Changes the title of a group or channel.
BLP Example

setChatDescription

Changes the description of a group, supergroup, or channel.
BLP Example

pinChatMessage

Pins a message in the chat.
BLP Example

unpinChatMessage

Unpins a specific pinned message.
BLP Example

unpinAllChatMessages

Clears all pinned messages in the chat.
BLP Example

leaveChat

Makes the bot leave a group, supergroup, or channel.
BLP Example

Chat Information

getChat

Gets full up-to-date information about a chat. Returns: A Chat object with fields like id, type, title, username, description, invite_link, member_count, etc.
BLP Example

getChatAdministrators

Gets the list of all admins in a chat.
BLP Example

getChatMemberCount

Gets the total number of members in a chat.
BLP Example

getChatMember

Gets information about a specific member of a chat. Returns: A ChatMember object. The status field can be: creator, administrator, member, restricted, left, or kicked.
BLP Example

Forums and Topics

createForumTopic

Creates a topic in a forum supergroup chat. The bot must be an administrator.
BLP Example

editForumTopic

Edits name and icon of a topic in a forum supergroup chat.

closeForumTopic

Closes an open topic in a forum supergroup chat.

reopenForumTopic

Reopens a closed topic in a forum supergroup chat.

deleteForumTopic

Deletes a forum topic along with all its messages.

unpinAllForumTopicMessages

Clears the list of pinned messages in a forum topic.

editGeneralForumTopic

Edits the name of the ‘General’ topic in a forum supergroup chat.

closeGeneralForumTopic

Closes the ‘General’ topic in a forum supergroup chat.

reopenGeneralForumTopic

Reopens a closed ‘General’ topic in a forum supergroup chat.

hideGeneralForumTopic

Hides the ‘General’ topic in a forum supergroup chat.

unhideGeneralForumTopic

Unhides the ‘General’ topic in a forum supergroup chat.

unpinAllGeneralForumTopicMessages

Clears the list of pinned messages in the ‘General’ topic.

User Metadata

getUserProfilePhotos

Gets a list of profile pictures for a user.
BLP Example

getUserProfileAudios

Gets the user’s audio profile info (if available via API limitations).

getUserPersonalChatMessages

Used to access personal chat messages based on specific Telegram client settings.

getUserChatBoosts

Gets the list of boosts added to a chat by a user.

Verification & Chat Properties

verifyChat

Verifies a chat on behalf of the organization which is represented by the bot.

verifyUser

Verifies a user on behalf of the organization which is represented by the bot.

removeChatVerification

Removes verification from a chat that was verified by the bot.

removeUserVerification

Removes verification from a user that was verified by the bot.

setChatStickerSet

Sets a new group sticker set for a supergroup.

deleteChatStickerSet

Deletes the group sticker set from a supergroup.

getChatMenuButton

Gets the current value of the bot’s menu button in a private chat, or the default menu button.

setChatMenuButton

Changes the bot’s menu button in a private chat, or the default menu button.

setMyDefaultAdministratorRights

Changes the default administrator rights requested by the bot when it’s added as an administrator to groups or channels.

getMyDefaultAdministratorRights

Gets the current default administrator rights of the bot.

setChatMemberTag

Sets a custom title tag for a specific chat member.

setUserEmojiStatus

Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess.
BLP Example