Channel
- class pyrogram.raw.types.Channel
Channel/supergroup info
Constructor of
Chat.- Details:
Layer:
223ID:
1C32B11C
- Parameters:
id (
int64-bit) – ID of the channel, see here » for more info and the available ID range.title (
str) – Titlephoto (
ChatPhoto) – Profile photodate (
int32-bit) – Date when the user joined the supergroup/channel, or if the user isn’t a member, its creation datecreator (
bool, optional) – Whether the current user is the creator of this channelleft (
bool, optional) – Whether the current user has left or is not a member of this channelbroadcast (
bool, optional) – Is this a channel?verified (
bool, optional) – Is this channel verified by telegram?megagroup (
bool, optional) – Is this a supergroup? Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.restricted (
bool, optional) – Whether viewing/writing in this channel for a reason (see restriction_reason)signatures (
bool, optional) – Whether signatures are enabled (channels)min (
bool, optional) – See minscam (
bool, optional) – This 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_link (
bool, optional) – Whether 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_geo (
bool, optional) – Whether this chanel has a geopositionslowmode_enabled (
bool, optional) – Whether 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_active (
bool, optional) – Whether a group call or livestream is currently activecall_not_empty (
bool, optional) – Whether there’s anyone in the group call or livestreamfake (
bool, optional) – If 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.gigagroup (
bool, optional) – Whether this supergroup is a gigagroupChanges to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.noforwards (
bool, optional) – Whether this channel or group is protected, thus does not allow forwarding messages from itjoin_to_send (
bool, optional) – Whether 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_request (
bool, optional) – Whether 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.forum (
bool, optional) – Whether 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.stories_hidden (
bool, optional) – Whether we have hidden all stories posted by this channel ».stories_hidden_min (
bool, optional) – If 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_unavailable (
bool, optional) – No stories from the channel are visible.signature_profiles (
bool, optional) – If set, messages sent by admins to this channel will link to the admin’s profile (just like with groups).autotranslation (
bool, optional) – If set, autotranslation was enabled for all users by the admin of the channel, as specified here ».broadcast_messages_allowed (
bool, optional) – If set, this channel has an associated monoforum », and its ID is specified in the linked_monoforum_id flag.monoforum (
bool, optional) – If set, this is a monoforum », and the ID of the associated channel is specified in the linked_monoforum_id.forum_tabs (
bool, optional) – If set, enables the tabbed forum UI ».access_hash (
int64-bit, optional) – Access hash, see here » for more infousername (
str, optional) – Main active username.restriction_reason (List of
RestrictionReason, optional) – 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_rights (
ChatAdminRights, optional) – Admin rights of the user in this channel (see rights)banned_rights (
ChatBannedRights, optional) – Banned rights of the user in this channel (see rights)default_banned_rights (
ChatBannedRights, optional) – Default chat rights (see rights)participants_count (
int32-bit, optional) – Participant countusernames (List of
Username, optional) – Additional usernamesstories_max_id (
RecentStory, optional) – ID of the maximum read story.color (
PeerColor, optional) – The channel’s accent color.profile_color (
PeerColor, optional) – The channel’s profile color.emoji_status (
EmojiStatus, optional) – Emoji statuslevel (
int32-bit, optional) – Boost level. Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID, see here » for more info.subscription_until_date (
int32-bit, optional) – Expiration date of the Telegram Star subscription » the current user has bought to gain access to this channel.bot_verification_icon (
int64-bit, optional) – Describes a bot verification icon ».send_paid_messages_stars (
int64-bit, optional) – If 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_id (
int64-bit, optional) – For channels with associated monoforums, the monoforum ID. For Monoforums, the ID of the associated channel.
TL Schema
channel#1c32b11c
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
= Chat
Parameter Tree
true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)longlong (optional)stringstring (optional)ChatPhotoChatPhotoEmptyChatPhototrue (optional)longbytes (optional)intintVector < RestrictionReason > (optional)RestrictionReasonstringstringstringChatAdminRights (optional)ChatAdminRightstrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)ChatBannedRights (optional)ChatBannedRightstrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)intChatBannedRights (optional)ChatBannedRightstrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)intint (optional)Vector < Username > (optional)Usernametrue (optional)true (optional)stringRecentStory (optional)RecentStorytrue (optional)int (optional)PeerColor (optional)PeerColorint (optional)long (optional)PeerColorCollectiblelonglonglongintVector < int >int (optional)Vector < int > (optional)longPeerColor (optional)PeerColorint (optional)long (optional)PeerColorCollectiblelonglonglongintVector < int >int (optional)Vector < int > (optional)longEmojiStatus (optional)EmojiStatusEmptyEmojiStatuslongint (optional)EmojiStatusCollectiblelonglongstringstringlongintintintintint (optional)longint (optional)int (optional)int (optional)long (optional)long (optional)long (optional)Example
Channel(
id=0,
title="text",
photo=ChatPhotoEmpty(),
date=0,
)