ChatInvite

class pyrogram.raw.types.ChatInvite

Chat invite info

Constructor of ChatInvite.

Details:
  • Layer: 223

  • ID: 5C9D3702

Parameters:
  • title (str) – Chat/supergroup/channel title

  • photo (Photo) – Chat/supergroup/channel photo

  • participants_count (int 32-bit) – Participant count

  • color (int 32-bit) – Profile color palette ID

  • channel (bool, optional) – Whether this is a channel/supergroup or a normal group

  • broadcast (bool, optional) – Whether this is a channel

  • public (bool, optional) – Whether this is a public channel/supergroup

  • megagroup (bool, optional) – Whether this is a supergroup

  • request_needed (bool, optional) – Whether the join request » must be first approved by an administrator

  • verified (bool, optional) – Is this chat or channel verified by Telegram?

  • scam (bool, optional) – This chat is probably a scam

  • fake (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 channel

  • participants (List of User, optional) – A few of the participants that are in the group

  • subscription_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 (int 64-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.

messages.CheckChatInvite

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

ChatInvite
├── channeltrue (optional)
├── broadcasttrue (optional)
├── publictrue (optional)
├── megagrouptrue (optional)
├── request_neededtrue (optional)
├── verifiedtrue (optional)
├── scamtrue (optional)
├── faketrue (optional)
├── can_refulfill_subscriptiontrue (optional)
├── titlestring
├── aboutstring (optional)
├── photoPhoto
│ ├── PhotoEmpty
│ │ └── idlong
│ └── Photo
│ ├── has_stickerstrue (optional)
│ ├── idlong
│ ├── access_hashlong
│ ├── file_referencebytes
│ ├── dateint
│ ├── sizesVector < PhotoSize >
│ │ ├── PhotoSizeEmpty
│ │ │ └── typestring
│ │ ├── PhotoSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── sizeint
│ │ ├── PhotoCachedSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── bytesbytes
│ │ ├── PhotoStrippedSize
│ │ │ ├── typestring
│ │ │ └── bytesbytes
│ │ ├── PhotoSizeProgressive
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── sizesVector < int >
│ │ └── PhotoPathSize
│ │ ├── typestring
│ │ └── bytesbytes
│ ├── video_sizesVector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ ├── sizeint
│ │ │ └── video_start_tsdouble (optional)
│ │ ├── VideoSizeEmojiMarkup
│ │ │ ├── emoji_idlong
│ │ │ └── background_colorsVector < int >
│ │ └── VideoSizeStickerMarkup
│ │ ├── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── sticker_idlong
│ │ └── background_colorsVector < int >
│ └── dc_idint
├── participants_countint
├── participantsVector < User > (optional)
│ ├── UserEmpty
│ │ └── idlong
│ └── User
│ ├── is_selftrue (optional)
│ ├── contacttrue (optional)
│ ├── mutual_contacttrue (optional)
│ ├── deletedtrue (optional)
│ ├── bottrue (optional)
│ ├── bot_chat_historytrue (optional)
│ ├── bot_nochatstrue (optional)
│ ├── verifiedtrue (optional)
│ ├── restrictedtrue (optional)
│ ├── mintrue (optional)
│ ├── bot_inline_geotrue (optional)
│ ├── supporttrue (optional)
│ ├── scamtrue (optional)
│ ├── apply_min_phototrue (optional)
│ ├── faketrue (optional)
│ ├── bot_attach_menutrue (optional)
│ ├── premiumtrue (optional)
│ ├── attach_menu_enabledtrue (optional)
│ ├── bot_can_edittrue (optional)
│ ├── close_friendtrue (optional)
│ ├── stories_hiddentrue (optional)
│ ├── stories_unavailabletrue (optional)
│ ├── contact_require_premiumtrue (optional)
│ ├── bot_businesstrue (optional)
│ ├── bot_has_main_apptrue (optional)
│ ├── bot_forum_viewtrue (optional)
│ ├── bot_forum_can_manage_topicstrue (optional)
│ ├── idlong
│ ├── access_hashlong (optional)
│ ├── first_namestring (optional)
│ ├── last_namestring (optional)
│ ├── usernamestring (optional)
│ ├── phonestring (optional)
│ ├── photoUserProfilePhoto (optional)
│ │ ├── UserProfilePhotoEmpty
│ │ └── UserProfilePhoto
│ │ ├── has_videotrue (optional)
│ │ ├── personaltrue (optional)
│ │ ├── photo_idlong
│ │ ├── stripped_thumbbytes (optional)
│ │ └── dc_idint
│ ├── statusUserStatus (optional)
│ │ ├── UserStatusEmpty
│ │ ├── UserStatusOnline
│ │ │ └── expiresint
│ │ ├── UserStatusOffline
│ │ │ └── was_onlineint
│ │ ├── UserStatusRecently
│ │ │ └── by_metrue (optional)
│ │ ├── UserStatusLastWeek
│ │ │ └── by_metrue (optional)
│ │ └── UserStatusLastMonth
│ │ └── by_metrue (optional)
│ ├── bot_info_versionint (optional)
│ ├── restriction_reasonVector < RestrictionReason > (optional)
│ │ └── RestrictionReason
│ │ ├── platformstring
│ │ ├── reasonstring
│ │ └── textstring
│ ├── bot_inline_placeholderstring (optional)
│ ├── lang_codestring (optional)
│ ├── emoji_statusEmojiStatus (optional)
│ │ ├── EmojiStatusEmpty
│ │ ├── EmojiStatus
│ │ │ ├── document_idlong
│ │ │ └── untilint (optional)
│ │ ├── EmojiStatusCollectible
│ │ │ ├── collectible_idlong
│ │ │ ├── document_idlong
│ │ │ ├── titlestring
│ │ │ ├── slugstring
│ │ │ ├── pattern_document_idlong
│ │ │ ├── center_colorint
│ │ │ ├── edge_colorint
│ │ │ ├── pattern_colorint
│ │ │ ├── text_colorint
│ │ │ └── untilint (optional)
│ │ └── InputEmojiStatusCollectible
│ │ ├── collectible_idlong
│ │ └── untilint (optional)
│ ├── usernamesVector < Username > (optional)
│ │ └── Username
│ │ ├── editabletrue (optional)
│ │ ├── activetrue (optional)
│ │ └── usernamestring
│ ├── stories_max_idRecentStory (optional)
│ │ └── RecentStory
│ │ ├── livetrue (optional)
│ │ └── max_idint (optional)
│ ├── colorPeerColor (optional)
│ │ ├── PeerColor
│ │ │ ├── colorint (optional)
│ │ │ └── background_emoji_idlong (optional)
│ │ ├── PeerColorCollectible
│ │ │ ├── collectible_idlong
│ │ │ ├── gift_emoji_idlong
│ │ │ ├── background_emoji_idlong
│ │ │ ├── accent_colorint
│ │ │ ├── colorsVector < int >
│ │ │ ├── dark_accent_colorint (optional)
│ │ │ └── dark_colorsVector < int > (optional)
│ │ └── InputPeerColorCollectible
│ │ └── collectible_idlong
│ ├── profile_colorPeerColor (optional)
│ │ ├── PeerColor
│ │ │ ├── colorint (optional)
│ │ │ └── background_emoji_idlong (optional)
│ │ ├── PeerColorCollectible
│ │ │ ├── collectible_idlong
│ │ │ ├── gift_emoji_idlong
│ │ │ ├── background_emoji_idlong
│ │ │ ├── accent_colorint
│ │ │ ├── colorsVector < int >
│ │ │ ├── dark_accent_colorint (optional)
│ │ │ └── dark_colorsVector < int > (optional)
│ │ └── InputPeerColorCollectible
│ │ └── collectible_idlong
│ ├── bot_active_usersint (optional)
│ ├── bot_verification_iconlong (optional)
│ └── send_paid_messages_starslong (optional)
├── colorint
├── subscription_pricingStarsSubscriptionPricing (optional)
│ ├── periodint
│ └── amountlong
├── subscription_form_idlong (optional)
└── bot_verificationBotVerification (optional)
└── BotVerification
├── bot_idlong
├── iconlong
└── descriptionstring

Example

ChatInvite(
    title="text",
    photo=PhotoEmpty(id=0),
    participants_count=0,
    color=0,
)