Skip to content

export Class

ChatAdministratorRights ​

extends ​

Builder

Constructor ​

ts
 new ChatAdministratorRights( ...rights )
ParameterTypeDescription
...rightsAdministratorRight[]The required administrator rights of the user in the chat.

Methods ​

set( right, allowed ) ​

ParameterTypeDescription
rightAdministratorRightThe right to set.
allowed = truebooleanWether to set to true to allow permission or not.

Set a right.

Returns: ChatAdministratorRights

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.