ChatMemberAdministrator

data class ChatMemberAdministrator(status: String, user: User, can_be_edited: Boolean, is_anonymous: Boolean, can_manage_chat: Boolean, can_delete_messages: Boolean, can_manage_voice_chats: Boolean, can_restrict_members: Boolean, can_promote_members: Boolean, can_change_info: Boolean, can_invite_users: Boolean, can_post_messages: Boolean?, can_edit_messages: Boolean?, can_pin_messages: Boolean?, custom_title: String?) : ChatMember

Represents a chat member that has some additional privileges.

Constructors

ChatMemberAdministrator
Link copied to clipboard
fun ChatMemberAdministrator(status: String, user: User, can_be_edited: Boolean, is_anonymous: Boolean, can_manage_chat: Boolean, can_delete_messages: Boolean, can_manage_voice_chats: Boolean, can_restrict_members: Boolean, can_promote_members: Boolean, can_change_info: Boolean, can_invite_users: Boolean, can_post_messages: Boolean? = null, can_edit_messages: Boolean? = null, can_pin_messages: Boolean? = null, custom_title: String? = null)

Properties

can_be_edited
Link copied to clipboard
val can_be_edited: Boolean
True, if the bot is allowed to edit administrator privileges of that user
can_change_info
Link copied to clipboard
val can_change_info: Boolean
True, if the user is allowed to change the chat title, photo and other settings
can_delete_messages
Link copied to clipboard
val can_delete_messages: Boolean
True, if the administrator can delete messages of other users
can_edit_messages
Link copied to clipboard
val can_edit_messages: Boolean? = null
Optional.
can_invite_users
Link copied to clipboard
val can_invite_users: Boolean
True, if the user is allowed to invite new users to the chat
can_manage_chat
Link copied to clipboard
val can_manage_chat: Boolean
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.
can_manage_voice_chats
Link copied to clipboard
val can_manage_voice_chats: Boolean
True, if the administrator can manage voice chats
can_pin_messages
Link copied to clipboard
val can_pin_messages: Boolean? = null
Optional.
can_post_messages
Link copied to clipboard
val can_post_messages: Boolean? = null
Optional.
can_promote_members
Link copied to clipboard
val can_promote_members: Boolean
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_restrict_members
Link copied to clipboard
val can_restrict_members: Boolean
True, if the administrator can restrict, ban or unban chat members
custom_title
Link copied to clipboard
val custom_title: String? = null
Optional.
is_anonymous
Link copied to clipboard
val is_anonymous: Boolean
True, if the user's presence in the chat is hidden
status
Link copied to clipboard
val status: String
The member's status in the chat, always “administrator”
user
Link copied to clipboard
val user: User
Information about the user