telegram.ChatMemberAdministrator¶
-
class
telegram.
ChatMemberAdministrator
(user, can_be_edited=None, custom_title=None, is_anonymous=None, can_manage_chat=None, can_post_messages=None, can_edit_messages=None, can_delete_messages=None, can_manage_voice_chats=None, can_restrict_members=None, can_promote_members=None, can_change_info=None, can_invite_users=None, can_pin_messages=None, can_manage_video_chats=None, can_manage_topics=None, **_kwargs)¶ Bases:
telegram.chatmember.ChatMember
Represents a chat member that has some additional privileges.
New in version 13.7.
Changed in version 13.12: Since Bot API 6.0, voice chat was renamed to video chat.
- Parameters
user (
telegram.User
) – Information about the user.can_be_edited (
bool
, optional) –True
, if the bot is allowed to edit administrator privileges of that user.custom_title (
str
, optional) – Custom title for this user.is_anonymous (
bool
, optional) –True
, if the user’s presence in the chat is hidden.can_manage_chat (
bool
, optional) –True
, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege.can_post_messages (
bool
, optional) –True
, if the administrator can post in the channel, channels only.can_edit_messages (
bool
, optional) –True
, if the administrator can edit messages of other users and can pin messages; channels only.can_delete_messages (
bool
, optional) –True
, if the administrator can delete messages of other users.can_manage_voice_chats (
bool
, optional) –True
, if the administrator can manage voice chats.Deprecated since version 13.12.
can_manage_video_chats (
bool
) –True
, if the administrator can manage video chats.New in version 13.12.
can_restrict_members (
bool
, optional) –True
, if the administrator can restrict, ban or unban chat members.can_promote_members (
bool
, optional) –True
, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user).can_change_info (
bool
, optional) –True
, if the user can change the chat title, photo and other settings.can_invite_users (
bool
, optional) –True
, if the user can invite new users to the chat.can_pin_messages (
bool
, optional) –True
, if the user is allowed to pin messages; groups and supergroups only.can_manage_topics (
bool
, optional) –True
, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only.New in version 13.15.
-
status
¶ The member’s status in the chat, always
telegram.ChatMember.ADMINISTRATOR
.- Type
str
-
user
¶ Information about the user.
- Type
-
can_be_edited
¶ Optional.
True
, if the bot is allowed to edit administrator privileges of that user.- Type
bool
-
custom_title
¶ Optional. Custom title for this user.
- Type
str
-
is_anonymous
¶ Optional.
True
, if the user’s presence in the chat is hidden.- Type
bool
-
can_manage_chat
¶ Optional.
True
, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege.- Type
bool
-
can_post_messages
¶ Optional.
True
, if the administrator can post in the channel, channels only.- Type
bool
-
can_edit_messages
¶ Optional.
True
, if the administrator can edit messages of other users and can pin messages; channels only.- Type
bool
-
can_delete_messages
¶ Optional.
True
, if the administrator can delete messages of other users.- Type
bool
-
can_manage_voice_chats
¶ Optional.
True
, if the administrator can manage voice chats.Deprecated since version 13.12: contains the same value as
can_manage_video_chats
for backwards compatibility.- Type
bool
-
can_manage_video_chats
¶ True
, if the administrator can manage video chats.New in version 13.12.
- Type
bool
-
can_restrict_members
¶ Optional.
True
, if the administrator can restrict, ban or unban chat members.- Type
bool
-
can_promote_members
¶ Optional.
True
, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user).- Type
bool
-
can_change_info
¶ Optional.
True
, if the user can change the chat title, photo and other settings.- Type
bool
-
can_invite_users
¶ Optional.
True
, if the user can invite new users to the chat.- Type
bool
-
can_pin_messages
¶ Optional.
True
, if the user is allowed to pin messages; groups and supergroups only.- Type
bool
-
can_manage_topics
¶ Optional.
True
, if the user is allowed to create, rename, close, and reopen forum topics; supergroups onlyNew in version 13.15.
- Type
bool