telegram.ChatInviteLink#
- class telegram.ChatInviteLink(*args, **kwargs)[source]#
Bases:
telegram.TelegramObjectThis object represents an invite link for a chat.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
invite_link,creator,creates_join_request,is_primaryandis_revokedare equal.New in version 13.4.
Changed in version 20.0:
The argument & attribute
creates_join_requestis now required to comply with the Bot API.Comparing objects of this class now also takes
creates_join_requestinto account.
- Parameters
invite_link (
str) – The invite link.creator (
telegram.User) – Creator of the link.True, if users joining the chat via the link need to be approved by chat administrators.New in version 13.8.
is_primary (
bool) –True, if the link is primary.is_revoked (
bool) –True, if the link is revoked.expire_date (
datetime.datetime, optional) – Date when the link will expire or has been expired.member_limit (
int, optional) – Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.Invite link name. 0-
32characters.New in version 13.8.
pending_join_request_count (
int, optional) –Number of pending join requests created using this link.
New in version 13.8.
- invite_link[source]#
The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with
'…'.- Type
- creates_join_request[source]#
True, if users joining the chat via the link need to be approved by chat administrators.New in version 13.8.
- Type
- member_limit[source]#
Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
- Type
- pending_join_request_count[source]#
Optional. Number of pending join requests created using this link.
New in version 13.8.
- Type