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

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

Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X.

Constructors

new
ChatBannedRights_(params: { view_messages?: true; send_messages?: true; send_media?: true; send_stickers?: true; send_gifs?: true; send_games?: true; send_inline?: true; embed_links?: true; send_polls?: true; change_info?: true; invite_users?: true; pin_messages?: true; manage_topics?: true; send_photos?: true; send_videos?: true; send_roundvideos?: true; send_audios?: true; send_voices?: true; send_docs?: true; send_plain?: true; until_date: number; })

Properties

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

If set, does not allow any user to change the description of a supergroup/chat

optional
invite_users: true

If set, does not allow any user to invite users in a supergroup/chat

optional
manage_topics: true

If set, does not allow any user to create, delete or modify forum topics ».

optional
pin_messages: true

If set, does not allow any user to pin messages in a supergroup/chat

optional
send_audios: true

If set, does not allow a user to send audio files in a supergroup/chat.

optional
send_docs: true

If set, does not allow a user to send documents in a supergroup/chat.

optional
send_games: true

If set, does not allow a user to send games in a supergroup/chat

optional
send_gifs: true

If set, does not allow a user to send gifs in a supergroup/chat

optional
send_inline: true

If set, does not allow a user to use inline bots in a supergroup/chat.

optional
send_media: true

If set, does not allow a user to send any media in a supergroup/chat

optional
send_messages: true

If set, does not allow a user to send messages in a supergroup/chat

optional
send_photos: true

If set, does not allow a user to send photos in a supergroup/chat.

optional
send_plain: true

If set, does not allow a user to send text messages in a supergroup/chat.

optional
send_polls: true

If set, does not allow a user to send polls in a supergroup/chat

optional
send_roundvideos: true

If set, does not allow a user to send round videos in a supergroup/chat.

optional
send_stickers: true

If set, does not allow a user to send stickers in a supergroup/chat

optional
send_videos: true

If set, does not allow a user to send videos in a supergroup/chat.

optional
send_voices: true

If set, does not allow a user to send voice messages in a supergroup/chat.

until_date: number

Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).

optional
view_messages: true

If set, does not allow a user to view messages in a supergroup/channel/chat

Static Properties

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