PromoteChatMemberMethod

Method to promote or demote a user in a supergroup or a channel

Members

Variables

can_change_info
bool can_change_info;

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

can_delete_messages
bool can_delete_messages;

Pass true, if the administrator can delete messages of other users

can_edit_messages
bool can_edit_messages;

Pass true, if the administrator can edit messages of other users and can pin messages, channels only

can_invite_users
bool can_invite_users;

Pass true, if the administrator can invite new users to the chat

can_pin_messages
bool can_pin_messages;

Pass true, if the administrator can pin messages, supergroups only

can_post_messages
bool can_post_messages;

Pass true, if the administrator can create channel posts, channels only

can_promote_members
bool can_promote_members;

Pass true, if the administrator can add new administrators

can_restrict_members
bool can_restrict_members;

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

chat_id
TelegramID chat_id;

Unique identifier for the target chat or username of the target channel (in the format "@channelusername")

user_id
int user_id;

Unique identifier of the target user

See Also

Meta