ChatInvite
- class pyrogram.raw.types.ChatInvite
Chat invite info
Constructor of
ChatInvite.- Details:
Layer:
223ID:
5C9D3702
- Parameters:
title (
str) – Chat/supergroup/channel titlephoto (
Photo) – Chat/supergroup/channel photoparticipants_count (
int32-bit) – Participant countcolor (
int32-bit) – Profile color palette IDchannel (
bool, optional) – Whether this is a channel/supergroup or a normal groupbroadcast (
bool, optional) – Whether this is a channelpublic (
bool, optional) – Whether this is a public channel/supergroupmegagroup (
bool, optional) – Whether this is a supergrouprequest_needed (
bool, optional) – Whether the join request » must be first approved by an administratorverified (
bool, optional) – Is this chat or channel verified by Telegram?scam (
bool, optional) – This chat is probably a scamfake (
bool, optional) – If set, this chat was reported by many users as a fake or scam: be careful when interacting with it.can_refulfill_subscription (
bool, optional) – 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.about (
str, optional) – Description of the group of channelparticipants (List of
User, optional) – A few of the participants that are in the groupsubscription_pricing (
StarsSubscriptionPricing, optional) – For Telegram Star subscriptions », contains the pricing of the subscription the user must activate to join the private channel.subscription_form_id (
int64-bit, optional) – For Telegram Star subscriptions », the ID of the payment form for the subscription.bot_verification (
BotVerification, optional) – Describes a bot verification icon ».
- Functions:
This object can be returned by 1 function.
Check the validity of a chat invite link and get basic info about it
TL Schema
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
Parameter Tree
true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)stringstring (optional)PhotoPhotoEmptylongPhototrue (optional)longlongbytesintVector < PhotoSize >PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intintVector < User > (optional)UserEmptylongUsertrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)longlong (optional)string (optional)string (optional)string (optional)string (optional)UserProfilePhoto (optional)UserProfilePhotoEmptyUserProfilePhototrue (optional)true (optional)longbytes (optional)intUserStatus (optional)UserStatusEmptyUserStatusOnlineintUserStatusOfflineintUserStatusRecentlytrue (optional)UserStatusLastWeektrue (optional)UserStatusLastMonthtrue (optional)int (optional)Vector < RestrictionReason > (optional)RestrictionReasonstringstringstringstring (optional)string (optional)EmojiStatus (optional)EmojiStatusEmptyEmojiStatuslongint (optional)EmojiStatusCollectiblelonglongstringstringlongintintintintint (optional)InputEmojiStatusCollectiblelongint (optional)Vector < Username > (optional)Usernametrue (optional)true (optional)stringRecentStory (optional)RecentStorytrue (optional)int (optional)PeerColor (optional)PeerColorint (optional)long (optional)PeerColorCollectiblelonglonglongintVector < int >int (optional)Vector < int > (optional)InputPeerColorCollectiblelongPeerColor (optional)PeerColorint (optional)long (optional)PeerColorCollectiblelonglonglongintVector < int >int (optional)Vector < int > (optional)InputPeerColorCollectiblelongint (optional)long (optional)long (optional)intStarsSubscriptionPricing (optional)StarsSubscriptionPricingintlonglong (optional)BotVerification (optional)BotVerificationlonglongstringExample
ChatInvite(
title="text",
photo=PhotoEmpty(id=0),
participants_count=0,
color=0,
)