Skip to content

export Class

ChatPermissions ​

extends ​

Builder

Constructor ​

ts
 new ChatPermissions( ...permissions )
ParameterTypeDescription
...permissionsPermission[]The permissions a non-adminstrator user is allowed.

Methods ​

set( permission, allowed ) ​

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

Set a permission.

Returns: ChatPermissions

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