Skip to main content
Module

x/mtkruto/mod.ts>ChatAdministratorRights

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface ChatAdministratorRights
Re-export
import { type ChatAdministratorRights } from "https://deno.land/x/mtkruto@0.1.106/mod.ts";

Represents the rights of an administrator in a chat.

Properties

isAnonymous: boolean

True, if the user's presence in the chat is hidden

canManageChat: boolean

True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege

canDeleteMessages: boolean

True, if the administrator can delete messages of other users

canManageVideoChats: boolean

True, if the administrator can manage video chats

canRestrictMembers: boolean

True, if the administrator can restrict, ban or unban chat members

canPromoteMembers: boolean

True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)

canChangeInfo: boolean

True, if the user is allowed to change the chat title, photo and other settings

canInviteUsers: boolean

True, if the user is allowed to invite new users to the chat

optional
canPostMessages: boolean

True, if the administrator can post in the channel; channels only

optional
canEditMessages: boolean

True, if the administrator can edit messages of other users and can pin messages; channels only

optional
canPinMessages: boolean

True, if the user is allowed to pin messages; groups and supergroups only

optional
canManageTopics: boolean

True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only