peyk.platforms.telegram.types.chat_member_owner¶
Classes
|
Represents a chat member that owns the chat and has all administrator privileges. |
- class peyk.platforms.telegram.types.chat_member_owner.ChatMemberOwner(status: str = 'creator', user: User | None = None, is_anonymous: bool | None = None, custom_title: str | None = None)[source]¶
Bases:
objectRepresents a chat member that owns the chat and has all administrator privileges.
- Variables:
status (str) – The member’s status in the chat, always ‘creator’
user (peyk.platforms.telegram.types.user.User | None) – Information about the user
is_anonymous (bool | None) – True, if the user’s presence in the chat is hidden
custom_title (str | None) – Custom title for this user
- status: str = 'creator'¶
- is_anonymous: bool | None = None¶
- custom_title: str | None = None¶
- classmethod from_dict(data: dict | None) ChatMemberOwner | None[source]¶
Parse a Telegram API mapping into this type.
- Parameters:
data – Raw Telegram API mapping, or
None.- Returns:
Parsed type instance, or
NonewhendataisNone.