setMyDefaultAdministratorRights

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.

Arguments
Name Type Description Required
rights chatAdministratorRights | null | array | stdClass A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared. no
for_channels bool | null Pass True to change the default administrator rights of the bot in channels. Otherwise, the default administrator rights of the bot for groups and supergroups will be changed. no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : bool | BPT\types\responseError

Static or normal : Static

Examples :

request::setMyDefaultAdministratorRights(rights: ChatAdministratorRights | null, for_channels: bool | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::setMyDefaultAdministratorRights(['rights' => ChatAdministratorRights | null, 'for_channels' => bool | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::setMyDefaultAdministratorRights();