Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
method Context.prototype.setMyDefaultAdministratorRights
import { Context } from "https://deno.land/x/grammy@v1.31.1/context.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