Link Search Menu Expand Document

Constructor: chatInvite

Back to constructors index

Chat invite info

Attributes:

NameTypeRequiredDescription
channelBoolOptionalWhether this is a channel/supergroup or a normal group
broadcastBoolOptionalWhether this is a channel
publicBoolOptionalWhether this is a public channel/supergroup
megagroupBoolOptionalWhether this is a supergroup
request_neededBoolOptionalWhether the join request » must be first approved by an administrator
verifiedBoolOptionalIs this chat or channel verified by Telegram?
scamBoolOptionalThis chat is probably a scam
fakeBoolOptionalIf set, this chat was reported by many users as a fake or scam: be careful when interacting with it.
can_refulfill_subscriptionBoolOptional
titlestringYesChat/supergroup/channel title
aboutstringOptionalDescription of the group of channel
photoPhotoOptionalChat/supergroup/channel photo
participants_countintYesParticipant count
participantsArray of UserOptionalA few of the participants that are in the group
colorintYesProfile color palette ID
subscription_pricingStarsSubscriptionPricingOptional
subscription_form_idlongOptional

Type: ChatInvite

Example:

$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'request_needed' => Bool, 'verified' => Bool, 'scam' => Bool, 'fake' => Bool, 'can_refulfill_subscription' => Bool, 'title' => 'string', 'about' => 'string', 'photo' => Photo, 'participants_count' => int, 'participants' => [User, User], 'color' => int, 'subscription_pricing' => StarsSubscriptionPricing, 'subscription_form_id' => long];