Raw.Channel
Channel/supergroup info
channel#aadfc8f flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector<Username> stories_max_id:flags2.4?int color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int = Chat;
export namespace Raw {
export class Channel {
constructor(params: {
creator?: boolean;
left?: boolean;
broadcast?: boolean;
verified?: boolean;
megagroup?: boolean;
restricted?: boolean;
signatures?: boolean;
min?: boolean;
scam?: boolean;
hasLink?: boolean;
hasGeo?: boolean;
slowmodeEnabled?: boolean;
callActive?: boolean;
callNotEmpty?: boolean;
fake?: boolean;
gigagroup?: boolean;
noforwards?: boolean;
joinToSend?: boolean;
joinRequest?: boolean;
forum?: boolean;
storiesHidden?: boolean;
storiesHiddenMin?: boolean;
storiesUnavailable?: boolean;
id: bigint;
accessHash?: bigint;
title: string;
username?: string;
photo: Raw.TypeChatPhoto;
date: number;
restrictionReason?: Array<Raw.TypeRestrictionReason>;
adminRights?: Raw.TypeChatAdminRights;
bannedRights?: Raw.TypeChatBannedRights;
defaultBannedRights?: Raw.TypeChatBannedRights;
participantsCount?: number;
usernames?: Array<Raw.TypeUsername>;
storiesMaxId?: number;
color?: Raw.TypePeerColor;
profileColor?: Raw.TypePeerColor;
emojiStatus?: Raw.TypeEmojiStatus;
level?: number;
}) {}
}
}
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xaadfc8f
Property
creator
: boolean or undefinedWhether the current user is the creator of this channel
left
: boolean or undefinedWhether the current user has left or is not a member of this channel
broadcast
: boolean or undefinedIs this a channel?
verified
: boolean or undefinedIs this channel verified by telegram?
megagroup
: boolean or undefinedIs this a supergroup?
restricted
: boolean or undefinedWhether viewing/writing in this channel for a reason (see restrictionReason
signatures
: boolean or undefinedWhether signatures are enabled (channels)
min
: boolean or undefinedSee min
scam
: boolean or undefinedThis channel/supergroup is probably a scam
hasLink
: boolean or undefinedWhether this channel has a private join link
hasGeo
: boolean or undefinedWhether this chanel has a geoposition
slowmodeEnabled
: boolean or undefinedWhether slow mode is enabled for groups to prevent flood in chat
callActive
: boolean or undefinedWhether a group call or livestream is currently active
callNotEmpty
: boolean or undefinedWhether there’s anyone in the group call or livestream
fake
: boolean or undefinedIf set, this supergroup/channel was reported by many users as a fake or scam: be careful when interacting with it.
gigagroup
: boolean or undefinedWhether this supergroup is a gigagroup
noforwards
: boolean or undefinedWhether this channel or group is protected, thus does not allow forwarding messages from it
joinToSend
: boolean or undefinedWhether a user needs to join the supergroup before they can send messages: can be false only for discussion groups, toggle using channels.togglejointosend
joinRequest
: boolean or undefinedWhether a user’s join request will have to be approved by administrators, toggle using channels.togglejointosend
forum
: boolean or undefinedWhether this supergroup is a forum
storiesHidden
: boolean or undefinedWhether we have hidden all stories posted by this channel.
storiesHiddenMin
: boolean or undefinedIf set, indicates that the storiesHidden flag was not populated, and its value must cannot be relied on; use the previously cached value, or re-fetch the constructor using channels.getchannels to obtain the latest value of the storiesHidden flag.
storiesUnavailable
: boolean or undefinedNo stories from the channel are visible.
id
: bigintId of the channel, see here for more info
accessHash
: bigint or undefinedAccess hash, see here for more info
title
: stringTitle
username
: string or undefinedMain active username.
photo
: Raw.TypeChatPhotoProfile photo
date
: numberDate when the user joined the supergroup/channel, or if the user isn’t a member, its creation date
restrictionReason
: Array of Raw.TypeRestrictionReason or undefinedContains the reason why access to this channel must be restricted.
adminRights
: Raw.TypeChatAdminRights or undefinedAdmin rights of the user in this channel (see rights)
bannedRights
: Raw.TypeChatBannedRights or undefinedBanned rights of the user in this channel (see rights)
defaultBannedRights
: Raw.TypeChatBannedRights or undefinedDefault chat rights (see rights)
participantsCount
: number or undefinedParticipant count
usernames
: Array of Raw.TypeUsername or undefinedAdditional usernames
storiesMaxId
: number or undefinedId of the maximum read story.
color
: Raw.TypePeerColor or undefinedThe channel’s accent color.
profileColor
: Raw.TypePeerColor or undefinedThe channel’s profile color.
emojiStatus
: Raw.TypeEmojiStatus or undefinedEmoji status
level
: number or undefinedBoost level