method ApiMethods.setMyDefaultAdministratorRights
ApiMethods.setMyDefaultAdministratorRights(args: { rights?: ChatAdministratorRights; for_channels?: boolean; }): true

Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success.

Parameters

args: { rights?: ChatAdministratorRights; for_channels?: boolean; }

Return Type

true

Usage

import { type ApiMethods } from "types";