Add is_contact_require_premium attribute to User class

This commit is contained in:
KurimuzonAkuma 2024-02-20 00:58:17 +03:00
parent a777b8ba81
commit f783c77368

View File

@ -100,6 +100,9 @@ class User(Object, Update):
is_premium (``bool``, *optional*):
True, if this user is a premium user.
is_contact_require_premium (``bool``, *optional*):
True, if this user requires premium to send messages to him.
is_close_friend (``bool``, *optional*):
True, if this user is a close friend.
@ -184,6 +187,7 @@ class User(Object, Update):
is_fake: bool = None,
is_support: bool = None,
is_premium: bool = None,
is_contact_require_premium: bool = None,
is_close_friend: bool = None,
is_stories_hidden: bool = None,
is_stories_unavailable: bool = None,
@ -217,6 +221,7 @@ class User(Object, Update):
self.is_fake = is_fake
self.is_support = is_support
self.is_premium = is_premium
self.is_contact_require_premium = is_contact_require_premium
self.is_close_friend = is_close_friend
self.is_stories_hidden = is_stories_hidden
self.is_stories_unavailable = is_stories_unavailable
@ -266,6 +271,7 @@ class User(Object, Update):
is_fake=user.fake,
is_support=user.support,
is_premium=user.premium,
is_contact_require_premium=user.contact_require_premium,
is_close_friend=user.close_friend,
is_stories_hidden=user.stories_hidden,
is_stories_unavailable=user.stories_unavailable,