Channel#

class pyrogram.raw.types.Channel#

Channel/supergroup info.

Constructor of Chat.

Details:
  • Layer: 158

  • ID: 83259464

Parameters:
  • id (int 64-bit) – ID of the channel, see here » for more info.

  • title (str) – Title.

  • photo (ChatPhoto) – Profile photo.

  • date (int 32-bit) – Date when the user joined the supergroup/channel, or if the user isn’t a member, its creation date.

  • creator (bool, optional) – Whether the current user is the creator of this channel.

  • left (bool, optional) – Whether the current user has left or is not a member of this channel.

  • broadcast (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 min.

  • scam (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 geoposition.

  • slowmode_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 active.

  • call_not_empty (bool, optional) – Whether there’s anyone in the group call or livestream.

  • fake (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 it.

  • join_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.

  • access_hash (int 64-bit, optional) – Access hash, see here » for more info.

  • username (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 (int 32-bit, optional) – Participant count.

  • usernames (List of Username, optional) – Additional usernames.