method ApiMethods.setChatPermissions
ApiMethods.setChatPermissions(args: { chat_id: number | string; permissions: ChatPermissions; use_independent_chat_permissions?: boolean; }): true

Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success.

Parameters

args: { chat_id: number | string; permissions: ChatPermissions; use_independent_chat_permissions?: boolean; }

Return Type

true

Usage

import { type ApiMethods } from "types";