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

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

Full info about a channel, supergroup or gigagroup.

Constructors

new
ChannelFull_(params: { can_view_participants?: true; can_set_username?: true; can_set_stickers?: true; hidden_prehistory?: true; can_set_location?: true; has_scheduled?: true; can_view_stats?: true; blocked?: true; can_delete_channel?: true; antispam?: true; participants_hidden?: true; translations_disabled?: true; stories_pinned_available?: true; view_forum_as_messages?: true; id: bigint; about: string; participants_count?: number; admins_count?: number; kicked_count?: number; banned_count?: number; online_count?: number; read_inbox_max_id: number; read_outbox_max_id: number; unread_count: number; chat_photo: enums.Photo; notify_settings: enums.PeerNotifySettings; exported_invite?: enums.ExportedChatInvite; bot_info: Array<enums.BotInfo>; migrated_from_chat_id?: bigint; migrated_from_max_id?: number; pinned_msg_id?: number; stickerset?: enums.StickerSet; available_min_id?: number; folder_id?: number; linked_chat_id?: bigint; location?: enums.ChannelLocation; slowmode_seconds?: number; slowmode_next_send_date?: number; stats_dc?: number; pts: number; call?: enums.InputGroupCall; ttl_period?: number; pending_suggestions?: Array<string>; groupcall_default_join_as?: enums.Peer; theme_emoticon?: string; requests_pending?: number; recent_requesters?: Array<bigint>; default_send_as?: enums.Peer; available_reactions?: enums.ChatReactions; stories?: enums.PeerStories; wallpaper?: enums.WallPaper; boosts_applied?: number; boosts_unrestrict?: number; emojiset?: enums.StickerSet; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
about: string

Info about the channel

optional
admins_count: number

Number of channel admins

optional
antispam: true

Whether native antispam functionality is enabled in this supergroup.

optional
available_min_id: number

Identifier of a maximum unavailable message in a channel due to hidden history.

optional
available_reactions: enums.ChatReactions
optional
banned_count: number

Number of users banned from the channel

optional
blocked: true

Whether any anonymous admin of this supergroup was blocked: if set, you won't receive messages from anonymous group admins in discussion replies via @replies

optional
boosts_applied: number
optional
boosts_unrestrict: number
bot_info: Array<enums.BotInfo>

Info about bots in the channel/supergroup

optional
call: enums.InputGroupCall

Livestream or group call information

optional
can_delete_channel: true

Can we delete this channel?

optional
can_set_location: true

Can we set the geolocation of this group (for geogroups)

optional
can_set_stickers: true

Can we associate a stickerpack to the supergroup?

optional
can_set_username: true

Can we set the channel's username?

optional
can_view_participants: true

Can we view the participant list?

optional
can_view_stats: true
chat_photo: enums.Photo

Channel picture

optional
default_send_as: enums.Peer

Default peer used for sending messages to this channel

optional
emojiset: enums.StickerSet
optional
exported_invite: enums.ExportedChatInvite

Invite link

optional
groupcall_default_join_as: enums.Peer

When using phone.getGroupCallJoinAs to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default.

optional
has_scheduled: true

Whether scheduled messages are available

optional
hidden_prehistory: true

Is the history before we joined hidden to us?

id: bigint

ID of the channel

optional
kicked_count: number

Number of users kicked from the channel

optional
linked_chat_id: bigint

ID of the linked discussion chat for channels

optional
location: enums.ChannelLocation

Location of the geogroup

optional
migrated_from_chat_id: bigint

The chat ID from which this group was migrated

optional
migrated_from_max_id: number

The message ID in the original chat at which this group was migrated

notify_settings: enums.PeerNotifySettings

Notification settings

optional
online_count: number

Number of users currently online

optional
participants_count: number

Number of participants of the channel

optional
participants_hidden: true

Whether the participant list is hidden.

optional
pending_suggestions: Array<string>

A list of suggested actions for the supergroup admin, see here for more info ».

optional
pinned_msg_id: number

Message ID of the last pinned message

pts: number

Latest PTS for this channel

read_inbox_max_id: number

Position up to which all incoming messages are read.

read_outbox_max_id: number

Position up to which all outgoing messages are read.

optional
recent_requesters: Array<bigint>

IDs of users who requested to join recently

optional
requests_pending: number
optional
slowmode_next_send_date: number

Indicates when the user will be allowed to send another message in the supergroup (unixtime)

optional
slowmode_seconds: number

If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds

optional
stats_dc: number

If set, specifies the DC to use for fetching channel statistics

optional
stickerset: enums.StickerSet

Associated stickerset

optional
stories: enums.PeerStories

Channel stories

optional
stories_pinned_available: true

Whether this user has some pinned stories.

optional
theme_emoticon: string

Emoji representing a specific chat theme

optional
translations_disabled: true

Whether the real-time chat translation popup should be hidden.

optional
ttl_period: number

Time-To-Live of messages in this channel or supergroup

unread_count: number

Count of unread messages

optional
view_forum_as_messages: true

Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client.
This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method; invoking this method will update the value of this flag.

optional
wallpaper: enums.WallPaper

Static Properties

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