Represents a chat member that owns the chat and has all administrator privileges. .. versionadded:: 13.7 Args: user (:class:`telegram.User`): Information about the user. is_anonymous (:obj:`bool`): :obj:`True`, if the user's presence in the chat is hidd
| 140 | |
| 141 | |
| 142 | class ChatMemberOwner(ChatMember): |
| 143 | """ |
| 144 | Represents a chat member that owns the chat |
| 145 | and has all administrator privileges. |
| 146 | |
| 147 | .. versionadded:: 13.7 |
| 148 | |
| 149 | Args: |
| 150 | user (:class:`telegram.User`): Information about the user. |
| 151 | is_anonymous (:obj:`bool`): :obj:`True`, if the |
| 152 | user's presence in the chat is hidden. |
| 153 | custom_title (:obj:`str`, optional): Custom title for this user. |
| 154 | |
| 155 | Attributes: |
| 156 | status (:obj:`str`): The member's status in the chat, |
| 157 | always :tg-const:`telegram.ChatMember.OWNER`. |
| 158 | user (:class:`telegram.User`): Information about the user. |
| 159 | is_anonymous (:obj:`bool`): :obj:`True`, if the user's |
| 160 | presence in the chat is hidden. |
| 161 | custom_title (:obj:`str`): Optional. Custom title for |
| 162 | this user. |
| 163 | """ |
| 164 | |
| 165 | __slots__ = ("custom_title", "is_anonymous") |
| 166 | |
| 167 | def __init__( |
| 168 | self, |
| 169 | user: User, |
| 170 | is_anonymous: bool, |
| 171 | custom_title: str | None = None, |
| 172 | *, |
| 173 | api_kwargs: JSONDict | None = None, |
| 174 | ): |
| 175 | super().__init__(status=ChatMember.OWNER, user=user, api_kwargs=api_kwargs) |
| 176 | with self._unfrozen(): |
| 177 | self.is_anonymous: bool = is_anonymous |
| 178 | self.custom_title: str | None = custom_title |
| 179 | |
| 180 | |
| 181 | class ChatMemberAdministrator(ChatMember): |
no outgoing calls
searching dependent graphs…