Skip to main content

chatInvite

Chat invite info

type tg.ChatInvite struct { /* ... */ }

Implements ChatInvite.

Fields​

NameTypeRequiredDescription
Channelbool—Whether this is a channel/supergroup or a normal group
Broadcastbool—Whether this is a channel
Publicbool—Whether this is a public channel/supergroup
Megagroupbool—Whether this is a supergroup
RequestNeededbool—Whether the join request » must be first approved by an administrator
Verifiedbool—Is this chat or channel verified by Telegram?
Scambool—This chat is probably a scam
Fakebool—If set, this chat was reported by many users as a fake or scam: be careful when interacting with it.
CanRefulfillSubscriptionbool—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.
TitlestringyesChat/supergroup/channel title
Aboutstring—Description of the group of channel
PhotoPhotoClassyesChat/supergroup/channel photo
ParticipantsCountintyesParticipant count
Participants[]UserClass—A few of the participants that are in the group
ColorintyesProfile color palette ID
SubscriptionPricingStarsSubscriptionPricing—For Telegram Star subscriptions », contains the pricing of the subscription the user must activate to join the private channel.
SubscriptionFormIDint64—For Telegram Star subscriptions », the ID of the payment form for the subscription.
BotVerificationBotVerification—Describes a bot verification icon ».

References​