ChatInviteLink¶
- class litegram.types.chat_invite_link.ChatInviteLink(*, invite_link: str, creator: User, creates_join_request: bool, is_primary: bool, is_revoked: bool, name: str | None = None, expire_date: _datetime_serializer, return_type=int, when_used=unless - none)] | None = None, member_limit: int | None = None, pending_join_request_count: int | None = None, subscription_period: int | None = None, subscription_price: int | None = None, **extra_data: Any)[source]¶
Represents an invite link for a chat.
Source: https://core.telegram.org/bots/api#chatinvitelink
- invite_link: str¶
The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with ‘…’.
- creates_join_request: bool¶
True, if users joining the chat via the link need to be approved by chat administrators
- expire_date: DateTime | None¶
Optional. Point in time (Unix timestamp) when the link will expire or has been expired
- member_limit: int | None¶
Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
- pending_join_request_count: int | None¶
Optional. Number of pending join requests created using this link