telegram api constructor · layer 229 · #d49f34c6

channel

Channel/supergroup info

definition

channel#d49f34c6 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 signature_profiles:flags2.12?true autotranslation:flags2.15?true broadcast_messages_allowed:flags2.16?true monoforum:flags2.17?true forum_tabs:flags2.19?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?RecentStory color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int subscription_until_date:flags2.11?int bot_verification_icon:flags2.13?long send_paid_messages_stars:flags2.14?long linked_monoforum_id:flags2.18?long linked_community_id:flags2.20?long = Chat;

parameters

nametypedescription
flags#Flags, see TL conditional fields
creatorflags.0?trueWhether the current user is the creator of this channel
leftflags.2?trueWhether the current user has left or is not a member of this channel
broadcastflags.5?trueIs this a channel?
verifiedflags.7?trueIs this channel verified by telegram?
megagroupflags.8?trueIs this a supergroup? Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
restrictedflags.9?trueWhether viewing/writing in this channel for a reason (see restriction_reason)
signaturesflags.11?trueWhether signatures are enabled (channels)
minflags.12?trueSee min
scamflags.19?trueThis channel/supergroup is probably a scam Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
has_linkflags.20?trueWhether this channel has a linked discussion group » (or this supergroup is a channel's discussion group). The actual ID of the linked channel/supergroup is contained in channelFull.linked_chat_id. Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
has_geoflags.21?trueWhether this chanel has a geoposition
slowmode_enabledflags.22?trueWhether slow mode is enabled for groups to prevent flood in chat. Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
call_activeflags.23?trueWhether a group call or livestream is currently active
call_not_emptyflags.24?trueWhether there's anyone in the group call or livestream
fakeflags.25?trueIf set, this supergroup/channel was reported by many users as a fake or scam: be careful when interacting with it. Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
gigagroupflags.26?trueWhether this supergroup is a gigagroupChanges to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
noforwardsflags.27?trueWhether this channel or group is protected, thus does not allow forwarding messages from it
join_to_sendflags.28?trueWhether a user needs to join the supergroup before they can send messages: can be false only for discussion groups », toggle using channels.toggleJoinToSendChanges to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
join_requestflags.29?trueWhether a user's join request will have to be approved by administrators, toggle using channels.toggleJoinToSendChanges to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
forumflags.30?trueWhether this supergroup is a forum. Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
flags2#Flags, see TL conditional fields
stories_hiddenflags2.1?trueWhether we have hidden all stories posted by this channel ».
stories_hidden_minflags2.2?trueIf set, indicates that the stories_hidden 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 stories_hidden flag.
stories_unavailableflags2.3?trueNo stories from the channel are visible.
signature_profilesflags2.12?trueIf set, messages sent by admins to this channel will link to the admin's profile (just like with groups).
autotranslationflags2.15?trueIf set, autotranslation was enabled for all users by the admin of the channel, as specified here ».
broadcast_messages_allowedflags2.16?trueIf set, this channel has an associated monoforum », and its ID is specified in the linked_monoforum_id flag.
monoforumflags2.17?trueIf set, this is a monoforum », and the ID of the associated channel is specified in the linked_monoforum_id.
forum_tabsflags2.19?trueIf set, enables the tabbed forum UI ».
idlongID of the channel, see here » for more info and the available ID range.
access_hashflags.13?longAccess hash, see here » for more info
titlestringTitle
usernameflags.6?stringMain active username.
photoChatPhotoProfile photo
dateintDate when the user joined the supergroup/channel, or if the user isn't a member, its creation date
restriction_reasonflags.9?Vector<RestrictionReason>Contains the reason why access to this channel must be restricted. Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
admin_rightsflags.14?ChatAdminRightsAdmin rights of the user in this channel (see rights)
banned_rightsflags.15?ChatBannedRightsBanned rights of the user in this channel (see rights)
default_banned_rightsflags.18?ChatBannedRightsDefault chat rights (see rights)
participants_countflags.17?intParticipant count
usernamesflags2.0?Vector<Username>Additional usernames
stories_max_idflags2.4?RecentStoryID of the maximum read story.
colorflags2.7?PeerColorThe channel's accent color.
profile_colorflags2.8?PeerColorThe channel's profile color.
emoji_statusflags2.9?EmojiStatusEmoji status
levelflags2.10?intBoost level. Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.
subscription_until_dateflags2.11?intExpiration date of the Telegram Star subscription » the current user has bought to gain access to this channel.
bot_verification_iconflags2.13?longDescribes a bot verification icon ».
send_paid_messages_starsflags2.14?longIf set, this supergroup or monoforum has enabled paid messages », we might need to pay the specified amount of Stars to send messages to it, depending on the configured exceptions: check channelFull.send_paid_messages_stars to see if the currently logged in user actually has to pay or not, see here » for the full flow (only set for the monoforum, not the associated channel).
linked_monoforum_idflags2.18?longFor channels with associated monoforums, the monoforum ID. For Monoforums, the ID of the associated channel.
linked_community_idflags2.20?long

type

Chat · other constructors: chatEmpty, chat, chatForbidden, channelForbidden, communityForbidden, community

history

present in layers 46–229 · constructor id changed 18×

idlayers
#4b1b750646
#a14dca5262–67
#0cb44b1c68–72
#450b711573–74
#c88974ac75
#450b711576
#c88974ac77–92
#4df3083493–104
#d31a961e105–132
#8261ac61133–147
#83259464148–163
#94f592db164–165
#1981ea7e166
#8e87ccd8167
#0aadfc8f168–185
#fe4478bd186–195
#e00998b7196–199
#7482147e200–203
#fe685355204–216
#1c32b11c217–227
#d49f34c6228–229