MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / ChatMemberOwner

Class ChatMemberOwner

src/telegram/_chatmember.py:142–178  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

140
141
142class 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
181class ChatMemberAdministrator(ChatMember):

Callers 4

test_update.pyFile · 0.90
chat_member_ownerFunction · 0.90
test_equalityMethod · 0.90

Calls

no outgoing calls

Tested by 3

chat_member_ownerFunction · 0.72
test_equalityMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…