Skip to main content
Module

x/mtkruto/mod.ts>ChatAdministratorRights

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.702/mod.ts";

The rights of a chat administrator.

Properties

isAnonymous: boolean

Whether the admininistrator's presence in the chat is hidden.

canManageChat: boolean

Whether the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and surpass slow mode.

canDeleteMessages: boolean

Whether the administrator can delete messages of other users.

canManageVideoChats: boolean

Whether the administrator can manage video chats.

canRestrictMembers: boolean

Whether the administrator can restrict, ban or unban chat members.

canPromoteMembers: boolean

Whether the administrator can promote regular members to admininistrators.

canChangeInfo: boolean

Whether the administrator can change the name of the chat, its photo, description and some other settings.

canInviteUsers: boolean

Whether the administrator can invite users to the chat.

optional
canPostMessages: boolean

Whether the administrator can make posts in the channel. Only available for channels.

optional
canEditMessages: boolean

Whether the administrator can pin posts and edit posts they didn't send. Only available for channels.

optional
canPinMessages: boolean

Whether the administrator can pin messages. Only available for groups and supergroups.

optional
canManageTopics: boolean

Whether the administrator can manage topics. Only available for supergroups.