Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>ChatAdminRights_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class ChatAdminRights_
import { ChatAdminRights_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Represents the rights of an admin in a channel/supergroup.

Constructors

new
ChatAdminRights_(params?: { change_info?: true; post_messages?: true; edit_messages?: true; delete_messages?: true; ban_users?: true; invite_users?: true; pin_messages?: true; add_admins?: true; anonymous?: true; manage_call?: true; other?: true; manage_topics?: true; post_stories?: true; edit_stories?: true; delete_stories?: true; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
add_admins: true

If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup

optional
anonymous: true

Whether this admin is anonymous

optional
ban_users: true

If set, allows the admin to ban users from the channel/supergroup

optional
change_info: true

If set, allows the admin to modify the description of the channel/supergroup

optional
delete_messages: true

If set, allows the admin to also delete messages from other admins in the channel

optional
delete_stories: true

If set, allows the admin to delete stories posted by the other admins of the channel.

optional
edit_messages: true

If set, allows the admin to also edit messages from other admins in the channel

optional
edit_stories: true

If set, allows the admin to edit stories posted by the other admins of the channel.

optional
invite_users: true

If set, allows the admin to invite users in the channel/supergroup

optional
manage_call: true

If set, allows the admin to change group call/livestream settings

optional
manage_topics: true

If set, allows the admin to create, delete or modify forum topics ».

optional
other: true

Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode.

optional
pin_messages: true

If set, allows the admin to pin messages in the channel/supergroup

optional
post_messages: true

If set, allows the admin to post messages in the channel

optional
post_stories: true

If set, allows the admin to post stories as the channel.

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc