Raw.Channel

Raw.Channel

Channel/supergroup info

channel#e00998b7 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 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 subscription_until_date:flags2.11?int bot_verification_icon:flags2.13?long = 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;
      signatureProfiles?: 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;
      subscriptionUntilDate?: number;
      botVerificationIcon?: bigint;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 198
Constructor ID: 0xe00998b7

Property

  • creator : boolean or undefined

    Whether the current user is the creator of this channel

  • left : boolean or undefined

    Whether the current user has left or is not a member of this channel

  • broadcast : boolean or undefined

    Is this a channel?

  • verified : boolean or undefined

    Is this channel verified by telegram?

  • megagroup : boolean or undefined

    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 : boolean or undefined

    Whether viewing/writing in this channel for a reason (see restrictionReason)

  • signatures : boolean or undefined

    Whether signatures are enabled (channels)

  • min : boolean or undefined

    See min

  • scam : boolean or undefined

    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.

  • hasLink : boolean or undefined

    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.linkedChatId. changes to this flag should invalidate the local channelfull cache for this channel/supergroup id, see here for more info.

  • hasGeo : boolean or undefined

    Whether this chanel has a geoposition

  • slowmodeEnabled : boolean or undefined

    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.

  • callActive : boolean or undefined

    Whether a group call or livestream is currently active

  • callNotEmpty : boolean or undefined

    Whether there’s anyone in the group call or livestream

  • fake : boolean or undefined

    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 : boolean or undefined

    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 : boolean or undefined

    Whether this channel or group is protected, thus does not allow forwarding messages from it

  • joinToSend : boolean or undefined

    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.

  • joinRequest : boolean or undefined

    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 : boolean or undefined

    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.

  • storiesHidden : boolean or undefined

    Whether we have hidden all stories posted by this channel.

  • storiesHiddenMin : boolean or undefined

    If 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 undefined

    No stories from the channel are visible.

  • signatureProfiles : boolean or undefined

    If set, messages sent by admins to this channel will link to the admin’s profile (just like with groups).

  • id : bigint

    Id of the channel, see here for more info

  • accessHash : bigint or undefined

    Access hash, see here for more info

  • title : string

    Title

  • username : string or undefined

    Main active username.

  • photo : Raw.TypeChatPhoto

    Profile photo

  • date : number

    Date when the user joined the supergroup/channel, or if the user isn’t a member, its creation date

  • restrictionReason : Array of Raw.TypeRestrictionReason or undefined

    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.

  • adminRights : Raw.TypeChatAdminRights or undefined

    Admin rights of the user in this channel (see rights)

  • bannedRights : Raw.TypeChatBannedRights or undefined

    Banned rights of the user in this channel (see rights)

  • defaultBannedRights : Raw.TypeChatBannedRights or undefined

    Default chat rights (see rights)

  • participantsCount : number or undefined

    Participant count

  • usernames : Array of Raw.TypeUsername or undefined

    Additional usernames

  • storiesMaxId : number or undefined

    Id of the maximum read story.

  • color : Raw.TypePeerColor or undefined

    The channel’s accent color.

  • profileColor : Raw.TypePeerColor or undefined

    The channel’s profile color.

  • emojiStatus : Raw.TypeEmojiStatus or undefined

    Emoji status

  • level : number or undefined

    Boost level. changes to this flag should invalidate the local channelfull cache for this channel/supergroup id, see here for more info.

  • subscriptionUntilDate : number or undefined

    Expiration date of the telegram star subscription the current user has bought to gain access to this channel.

  • botVerificationIcon : bigint or undefined