Raw.MissingInvitee

Raw.MissingInvitee

Info about why a specific user could not be invited.

missingInvitee#628c9224 flags:# premium_would_allow_invite:flags.0?true premium_required_for_pm:flags.1?true user_id:long = MissingInvitee;
export namespace Raw {
  export class MissingInvitee {
    constructor(params: {
      premiumWouldAllowInvite?: boolean;
      premiumRequiredForPm?: boolean;
      userId: bigint;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x628c9224

Property

  • premiumWouldAllowInvite : boolean or undefined

    If set, we could not add the user only because the current account needs to purchase a telegram premium subscription to complete the operation.

  • premiumRequiredForPm : boolean or undefined

    If set, we could not add the user because of their privacy settings, and additionally, the current account needs to purchase a telegram premium subscription to directly share an invite link with the user via a private message.

  • userId : bigint

    Id of the user. if neither of the flags below are set, we could not add the user because of their privacy settings, and we can create and directly share an invite link with them using a normal message, instead.