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, ban unprivileged
members, and manage voice 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.
-
#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_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.
-
#can_manage_voice_chats ⇒ Boolean
True, if the administrator can manage voice chats.
-
#can_pin_messages ⇒ Boolean
True, if the administrator can pin messages; applicable to basic groups and supergroups 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 ⇒ TD::Types::String
A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.
-
#is_anonymous ⇒ Boolean
True, if the administrator isn’t shown in the chat member list and sends messages anonymously; 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.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 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.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def can_change_info @can_change_info end |
#can_delete_messages ⇒ Boolean
True, if the administrator can delete messages of other users.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def @can_delete_messages end |
#can_edit_messages ⇒ Boolean
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def @can_edit_messages end |
#can_invite_users ⇒ Boolean
True, if the administrator can invite new users to the chat.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def can_invite_users @can_invite_users end |
#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.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def can_manage_chat @can_manage_chat end |
#can_manage_voice_chats ⇒ Boolean
True, if the administrator can manage voice chats.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def can_manage_voice_chats @can_manage_voice_chats end |
#can_pin_messages ⇒ Boolean
True, if the administrator can pin messages; applicable to basic groups and supergroups only.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def @can_pin_messages end |
#can_post_messages ⇒ Boolean
True, if the administrator can create channel posts; applicable to channels only.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def @can_post_messages 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.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def can_promote_members @can_promote_members end |
#can_restrict_members ⇒ Boolean
True, if the administrator can restrict, ban, or unban chat members.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def can_restrict_members @can_restrict_members end |
#custom_title ⇒ TD::Types::String
A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def custom_title @custom_title end |
#is_anonymous ⇒ Boolean
True, if the administrator isn’t shown in the chat member list and sends messages anonymously; applicable to supergroups only.
27 28 29 |
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27 def is_anonymous @is_anonymous end |