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 undefinedWhether this is a channel/supergroup or a normal group
broadcast
: boolean or undefinedWhether this is a channel
public
: boolean or undefinedWhether this is a public channel/supergroup
megagroup
: boolean or undefinedWhether this is a supergroup
requestNeeded
: boolean or undefinedWhether the join request must be first approved by an administrator
verified
: boolean or undefinedIs this chat or channel verified by telegram?
scam
: boolean or undefinedThis chat is probably a scam
fake
: boolean or undefinedIf set, this chat was reported by many users as a fake or scam: be careful when interacting with it.
canRefulfillSubscription
: boolean or undefinedIf 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
: stringChat/supergroup/channel title
about
: string or undefinedDescription of the group of channel
photo
: Raw.TypePhotoChat/supergroup/channel photo
participantsCount
: numberParticipant count
participants
: Array of Raw.TypeUser or undefinedA few of the participants that are in the group
color
: numberProfile color palette id
subscriptionPricing
: Raw.TypeStarsSubscriptionPricing or undefinedFor telegram star subscriptions, contains the pricing of the subscription the user must activate to join the private channel.
subscriptionFormId
: bigint or undefinedFor telegram star subscriptions, the id of the payment form for the subscription.
botVerification
: Raw.TypeBotVerification or undefined