Skip to main content
Very Popular
Go to Latest
method Context.prototype.setMyDefaultAdministratorRights
Re-export
import { Context } from "https://deno.land/x/grammy@v1.11.1/mod.ts";

Context-aware alias for api.setMyDefaultAdministratorRights. Use this method to the 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 are free to modify the list before adding the bot. Returns True on success.

Parameters

optional
other: Other<"setMyDefaultAdministratorRights">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#setmydefaultadministratorrights