Class: TD::Types::ChatMemberStatus::Administrator
- Inherits:
-
TD::Types::ChatMemberStatus
- Object
- Dry::Struct
- Base
- TD::Types::ChatMemberStatus
- TD::Types::ChatMemberStatus::Administrator
- Defined in:
- lib/tdlib/types/chat_member_status/administrator.rb
Overview
The user is a member of the 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 video chats.
In supergroups and channels, there are more detailed options for administrator privileges.
Instance Attribute Summary collapse
-
#can_be_edited ⇒ Boolean
True, if the current user can edit the administrator privileges for the called user.
-
#custom_title ⇒ TD::Types::String
A custom title of the administrator; 0-16 characters without emoji; applicable to supergroups only.
-
#rights ⇒ TD::Types::ChatAdministratorRights
Rights of the administrator.
Method Summary
Methods inherited from Base
Instance Attribute Details
#can_be_edited ⇒ Boolean
True, if the current user can edit the administrator privileges for the called user.
11 12 13 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 11 def can_be_edited @can_be_edited end |
#custom_title ⇒ TD::Types::String
A custom title of the administrator; 0-16 characters without emoji; applicable to supergroups only.
11 12 13 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 11 def custom_title @custom_title end |
#rights ⇒ TD::Types::ChatAdministratorRights
Rights of the administrator.
11 12 13 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 11 def rights @rights end |