telegram.ChatInviteLink¶
-
class
telegram.ChatInviteLink(invite_link, creator, is_primary, is_revoked, expire_date=None, member_limit=None, **_kwargs)¶ Bases:
telegram.base.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,is_primaryandis_revokedare equal.New in version 13.4.
- Parameters
invite_link (
str) – The invite link.creator (
telegram.User) – Creator of the link.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¶ The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with
'…'.- Type
str
-
creator¶ Creator of the link.
- Type
-
is_primary¶ True, if the link is primary.- Type
bool
-
is_revoked¶ True, if the link is revoked.- Type
bool
-
expire_date¶ Optional. Date when the link will expire or has been expired.
- Type
datetime.datetime
-
member_limit¶ Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
- Type
int
-
classmethod
de_json(data, bot)¶
-
to_dict()¶