L i0BdZddlmZddlmZddlmZGddeZy)zSThis module contains the class which represents a Telegram ChatAdministratorRights.)Optional)TelegramObject)JSONDictc&eZdZdZdZ ddddedededed ed ed ed ed edededeedeedeedeedeedeeddf$fdZe ddZ e ddZ xZ S)ChatAdministratorRightsaRepresents the rights of an administrator in a chat. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`is_anonymous`, :attr:`can_manage_chat`, :attr:`can_delete_messages`, :attr:`can_manage_video_chats`, :attr:`can_restrict_members`, :attr:`can_promote_members`, :attr:`can_change_info`, :attr:`can_invite_users`, :attr:`can_post_messages`, :attr:`can_edit_messages`, :attr:`can_pin_messages`, :attr:`can_manage_topics`, :attr:`can_post_stories`, :attr:`can_delete_stories`, :attr:`can_edit_stories` and :attr:`can_manage_direct_messages` are equal. .. versionadded:: 20.0 .. versionchanged:: 20.0 :attr:`can_manage_topics` is considered as well when comparing objects of this type in terms of equality. .. versionchanged:: 20.6 :attr:`can_post_stories`, :attr:`can_edit_stories`, and :attr:`can_delete_stories` are considered as well when comparing objects of this type in terms of equality. .. versionchanged:: 21.1 As of this version, :attr:`can_post_stories`, :attr:`can_edit_stories`, and :attr:`can_delete_stories` is now required. Thus, the order of arguments had to be changed. .. versionchanged:: 22.4 :attr:`can_manage_direct_messages` is considered as well when comparing objects of this type in terms of equality. Args: is_anonymous (:obj:`bool`): :obj:`True`, if the user's presence in the chat is hidden. can_manage_chat (:obj:`bool`): :obj:`True`, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege. can_delete_messages (:obj:`bool`): :obj:`True`, if the administrator can delete messages of other users. can_manage_video_chats (:obj:`bool`): :obj:`True`, if the administrator can manage video chats. can_restrict_members (:obj:`bool`): :obj:`True`, if the administrator can restrict, ban or unban chat members, or access supergroup statistics. can_promote_members (:obj:`bool`): :obj:`True`, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user). can_change_info (:obj:`bool`): :obj:`True`, if the user is allowed to change the chat title , photo and other settings. can_invite_users (:obj:`bool`): :obj:`True`, if the user is allowed to invite new users to the chat. can_post_messages (:obj:`bool`, optional): :obj:`True`, if the administrator can post messages in the channel, or access channel statistics; for channels only. can_edit_messages (:obj:`bool`, optional): :obj:`True`, if the administrator can edit messages of other users and can pin messages; for channels only. can_pin_messages (:obj:`bool`, optional): :obj:`True`, if the user is allowed to pin messages; for groups and supergroups only. can_post_stories (:obj:`bool`): :obj:`True`, if the administrator can post stories to the chat. .. versionadded:: 20.6 .. versionchanged:: 21.0 |non_optional_story_argument| can_edit_stories (:obj:`bool`): :obj:`True`, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive .. versionadded:: 20.6 .. versionchanged:: 21.0 |non_optional_story_argument| can_delete_stories (:obj:`bool`): :obj:`True`, if the administrator can delete stories posted by other users. .. versionadded:: 20.6 .. versionchanged:: 21.0 |non_optional_story_argument| can_manage_topics (:obj:`bool`, optional): :obj:`True`, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only. .. versionadded:: 20.0 can_manage_direct_messages (:obj:`bool`, optional): :obj:`True`, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only. .. versionadded:: 22.4 Attributes: is_anonymous (:obj:`bool`): :obj:`True`, if the user's presence in the chat is hidden. can_manage_chat (:obj:`bool`): :obj:`True`, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege. can_delete_messages (:obj:`bool`): :obj:`True`, if the administrator can delete messages of other users. can_manage_video_chats (:obj:`bool`): :obj:`True`, if the administrator can manage video chats. can_restrict_members (:obj:`bool`): :obj:`True`, if the administrator can restrict, ban or unban chat members, or access supergroup statistics. can_promote_members (:obj:`bool`): :obj:`True`, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user.) can_change_info (:obj:`bool`): :obj:`True`, if the user is allowed to change the chat title ,photo and other settings. can_invite_users (:obj:`bool`): :obj:`True`, if the user is allowed to invite new users to the chat. can_post_messages (:obj:`bool`): Optional. :obj:`True`, if the administrator can post messages in the channel, or access channel statistics; for channels only. can_edit_messages (:obj:`bool`): Optional. :obj:`True`, if the administrator can edit messages of other users and can pin messages; for channels only. can_pin_messages (:obj:`bool`): Optional. :obj:`True`, if the user is allowed to pin messages; for groups and supergroups only. can_post_stories (:obj:`bool`): :obj:`True`, if the administrator can post stories to the chat. .. versionadded:: 20.6 .. versionchanged:: 21.0 |non_optional_story_argument| can_edit_stories (:obj:`bool`): :obj:`True`, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive .. versionadded:: 20.6 .. versionchanged:: 21.0 |non_optional_story_argument| can_delete_stories (:obj:`bool`): :obj:`True`, if the administrator can delete stories posted by other users. .. versionadded:: 20.6 .. versionchanged:: 21.0 |non_optional_story_argument| can_manage_topics (:obj:`bool`): Optional. :obj:`True`, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only. .. versionadded:: 20.0 can_manage_direct_messages (:obj:`bool`): Optional. :obj:`True`, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only. .. versionadded:: 22.4 )can_change_infocan_delete_messagescan_delete_storiescan_edit_messagescan_edit_storiescan_invite_userscan_manage_chatcan_manage_direct_messagescan_manage_topicscan_manage_video_chatscan_pin_messagescan_post_messagescan_post_storiescan_promote_memberscan_restrict_members is_anonymousN api_kwargsrrr rrrrr rr r rr rrrrreturnct||||_||_||_||_||_||_||_||_ | |_ | |_ | |_ | |_ | |_||_||_||_|j|j|j|j |j |j|j|j|j|j|j|j |j|j|j|j"f|_|j'y)Nr)super__init__rrr rrrrr rr r rr rrr _id_attrs_freeze)selfrrr rrrrr rr r rr rrrr __class__s g/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_chatadministratorrights.pyrz ChatAdministratorRights.__init__s;* J/".%4)< ,B#*>!)< %4&6&6&6(:1B1B0@1B:T'      $ $  ' '  % %  $ $   ! !  " "  " "  ! !  " "  ! !  ! !  # #  + +! & c8|dt|jzS)a1 This method returns the :class:`ChatAdministratorRights` object with all attributes set to :obj:`True`. This is e.g. useful when changing the bot's default administrator rights with :meth:`telegram.Bot.set_my_default_administrator_rights`. .. versionadded:: 20.0 )Tlen __slots__clss r" all_rightsz"ChatAdministratorRights.all_rightssGc#--0011r#c8|dt|jzS)z This method returns the :class:`ChatAdministratorRights` object with all attributes set to :obj:`False`. .. versionadded:: 20.0 )Fr%r(s r" no_rightsz!ChatAdministratorRights.no_rightssHs3==1122r#)NNNNN)rr) __name__ __module__ __qualname____doc__r'boolrrr classmethodr*r, __classcell__)r!s@r"rrs&FPI@-1,0+/,059#<&*.'<<<" < !% < # <"<<<<<!<$D><$D><#4.< $D>!<"%-TN#<&X&'<( )<|2233r#rN)r0typingrtelegram._telegramobjectrtelegram._utils.typesrrr#r"r8s"&Z3*m3nm3r#