Raw.ChatInvite

Raw.ChatInvite

Chat invite info

chatInvite#5c9d3702 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true request_needed:flags.6?true verified:flags.7?true scam:flags.8?true fake:flags.9?true can_refulfill_subscription:flags.11?true title:string about:flags.5?string photo:Photo participants_count:int participants:flags.4?Vector<User> color:int subscription_pricing:flags.10?StarsSubscriptionPricing subscription_form_id:flags.12?long bot_verification:flags.13?BotVerification = ChatInvite;
export namespace Raw {
  export class ChatInvite {
    constructor(params: {
      channel?: boolean;
      broadcast?: boolean;
      public?: boolean;
      megagroup?: boolean;
      requestNeeded?: boolean;
      verified?: boolean;
      scam?: boolean;
      fake?: boolean;
      canRefulfillSubscription?: boolean;
      title: string;
      about?: string;
      photo: Raw.TypePhoto;
      participantsCount: number;
      participants?: Array<Raw.TypeUser>;
      color: number;
      subscriptionPricing?: Raw.TypeStarsSubscriptionPricing;
      subscriptionFormId?: bigint;
      botVerification?: Raw.TypeBotVerification;
    }) {}
  }
}
🚫

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

Layer: 198
Constructor ID: 0x5c9d3702

Property

  • channel : boolean or undefined

    Whether this is a channel/supergroup or a normal group

  • broadcast : boolean or undefined

    Whether this is a channel

  • public : boolean or undefined

    Whether this is a public channel/supergroup

  • megagroup : boolean or undefined

    Whether this is a supergroup

  • requestNeeded : boolean or undefined

    Whether the join request must be first approved by an administrator

  • verified : boolean or undefined

    Is this chat or channel verified by telegram?

  • scam : boolean or undefined

    This chat is probably a scam

  • fake : boolean or undefined

    If set, this chat was reported by many users as a fake or scam: be careful when interacting with it.

  • canRefulfillSubscription : boolean or undefined

    If set, indicates that the user has already paid for the associated telegram star subscriptions and it hasn’t expired yet, so they may re-join the channel using messages.importchatinvite without repeating the payment.

  • title : string

    Chat/supergroup/channel title

  • about : string or undefined

    Description of the group of channel

  • photo : Raw.TypePhoto

    Chat/supergroup/channel photo

  • participantsCount : number

    Participant count

  • participants : Array of Raw.TypeUser or undefined

    A few of the participants that are in the group

  • color : number

    Profile color palette id

  • subscriptionPricing : Raw.TypeStarsSubscriptionPricing or undefined

    For telegram star subscriptions, contains the pricing of the subscription the user must activate to join the private channel.

  • subscriptionFormId : bigint or undefined

    For telegram star subscriptions, the id of the payment form for the subscription.

  • botVerification : Raw.TypeBotVerification or undefined