Tool

Promote chat member

The telegram_bot_api-promote-chat-member tool enables chat administrators to efficiently manage user privileges within Telegram supergroups and channels. It allows promoting or demoting users by assigning specific administrative rights, ensuring streamlined community management.

telegram_bot_api

Features

  • Promote or demote users in Telegram supergroups and channels based on required permissions.
  • Assign precise administrative rights such as changing chat info, posting messages, editing, deleting, and pinning messages.
  • Control user invitation privileges to manage new member access.
  • Manage member restrictions including banning and unbanning chat members.
  • Facilitate hierarchical admin control by allowing promotion or demotion of other administrators within permitted limits.

Benefits

  • Simplifies chat management by providing granular control over user permissions.
  • Enhances security by restricting sensitive actions to trusted administrators.
  • Improves community engagement through better moderation tools.
  • Saves time with automated promotion and demotion capabilities via API integration.
  • Supports scalable management of large groups and channels with complex admin hierarchies.

Description

Use this method to promote or demote a user in a supergroup or a channel. See the docs for more information

Parameters

10 parameters

NameTypeDescription
chatIdrequiredstring

Enter the unique identifier for the target chat (e.g. 1035597319) or username of the target public chat (in the format @channelusername or @supergroupusername). For example, if the group's public link is t.me/mygroup, the username is @mygroup.

userIdstring

Enter the unique identifier of the target user.

can_change_infoboolean

Pass True, if the administrator can change chat title, photo and other settings.

can_post_messagesboolean

Pass True, if the administrator can create channel posts [channels only].

can_edit_messagesboolean

Pass True, if the administrator can edit messages of other users and can pin messages [channels only].

can_delete_messagesboolean

Pass True, if the administrator can delete messages of other users [channels only].

can_invite_usersboolean

Pass True, if the administrator can invite new users to the chat.

can_restrict_membersboolean

Pass True, if the administrator can restrict, ban or unban chat members.

can_pin_messagesboolean

Pass True, if the administrator can pin messages [supergroups only].

can_promote_membersboolean

Pass True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by them).

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .