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>ChannelParticipantAdmin_

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

Admin

Constructors

new
ChannelParticipantAdmin_(params: { can_edit?: true; self?: true; user_id: bigint; inviter_id?: bigint; promoted_by: bigint; date: number; admin_rights: enums.ChatAdminRights; rank?: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
admin_rights: enums.ChatAdminRights

Admin rights

optional
can_edit: true

Can this admin promote other admins with the same permissions?

date: number

When did the user join

optional
inviter_id: bigint

User that invited the admin to the channel/group

promoted_by: bigint

User that promoted the user to admin

optional
rank: string

The role (rank) of the admin in the group: just an arbitrary string, admin by default

optional
self: true

Is this the current user

user_id: bigint

Admin user ID

Static Properties

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