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 a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, and ban unprivileged members. 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.
-
#can_change_info ⇒ Boolean
True, if the administrator can change the chat title, photo, and other settings.
-
#can_delete_messages ⇒ Boolean
True, if the administrator can delete messages of other users.
-
#can_edit_messages ⇒ Boolean
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
-
#can_invite_users ⇒ Boolean
True, if the administrator can invite new users to the chat.
-
#can_pin_messages ⇒ Boolean
True, if the administrator can pin messages; applicable to groups only.
-
#can_post_messages ⇒ Boolean
True, if the administrator can create channel posts; applicable to channels only.
-
#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.
-
#can_restrict_members ⇒ Boolean
True, if the administrator can restrict, ban, or unban chat members.
-
#custom_title ⇒ String
A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.
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.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def can_be_edited @can_be_edited end |
#can_change_info ⇒ Boolean
True, if the administrator can change the chat title, photo, and other settings.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def can_change_info @can_change_info end |
#can_delete_messages ⇒ Boolean
True, if the administrator can delete messages of other users.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def end |
#can_edit_messages ⇒ Boolean
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def end |
#can_invite_users ⇒ Boolean
True, if the administrator can invite new users to the chat.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def can_invite_users @can_invite_users end |
#can_pin_messages ⇒ Boolean
True, if the administrator can pin messages; applicable to groups only.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def end |
#can_post_messages ⇒ Boolean
True, if the administrator can create channel posts; applicable to channels only.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def end |
#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.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def can_promote_members @can_promote_members end |
#can_restrict_members ⇒ Boolean
True, if the administrator can restrict, ban, or unban chat members.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def can_restrict_members @can_restrict_members end |
#custom_title ⇒ String
A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.
20 21 22 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 20 def custom_title @custom_title end |