module TD::Types # The user is a member of a chat and has some additional privileges. # In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged # members, and manage voice chats. # In supergroups and channels, there are more detailed options for administrator privileges. # # @attr custom_title [TD::Types::String] A custom title of the administrator; 0-16 characters without emojis; # applicable to supergroups only. # @attr can_be_edited [Boolean] True, if the current user can edit the administrator privileges for the called user. # @attr can_manage_chat [Boolean] True, if the administrator can get chat event log, get chat statistics, get message # statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode. # Implied by any other privilege; applicable to supergroups and channels only. # @attr can_change_info [Boolean] True, if the administrator can change the chat title, photo, and other settings. # @attr can_post_messages [Boolean] True, if the administrator can create channel posts; applicable to channels only. # @attr can_edit_messages [Boolean] True, if the administrator can edit messages of other users and pin messages; # applicable to channels only. # @attr can_delete_messages [Boolean] True, if the administrator can delete messages of other users. # @attr can_invite_users [Boolean] True, if the administrator can invite new users to the chat. # @attr can_restrict_members [Boolean] True, if the administrator can restrict, ban, or unban chat members. # @attr can_pin_messages [Boolean] True, if the administrator can pin messages; applicable to basic groups and # supergroups only. # @attr can_promote_members [Boolean] True, if the administrator can add new administrators with a subset of their # own privileges or demote administrators that were directly or indirectly promoted by them. # @attr can_manage_voice_chats [Boolean] True, if the administrator can manage voice chats. # @attr is_anonymous [Boolean] True, if the administrator isn't shown in the chat member list and sends messages # anonymously; applicable to supergroups only. class ChatMemberStatus::Administrator < ChatMemberStatus attribute :custom_title, TD::Types::String attribute :can_be_edited, TD::Types::Bool attribute :can_manage_chat, TD::Types::Bool attribute :can_change_info, TD::Types::Bool attribute :can_post_messages, TD::Types::Bool attribute :can_edit_messages, TD::Types::Bool attribute :can_delete_messages, TD::Types::Bool attribute :can_invite_users, TD::Types::Bool attribute :can_restrict_members, TD::Types::Bool attribute :can_pin_messages, TD::Types::Bool attribute :can_promote_members, TD::Types::Bool attribute :can_manage_voice_chats, TD::Types::Bool attribute :is_anonymous, TD::Types::Bool end end