Class: TD::Types::ChatAdministratorRights
- Defined in:
- lib/tdlib/types/chat_administrator_rights.rb
Overview
Describes rights of the administrator.
Instance Attribute Summary collapse
-
#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_delete_stories ⇒ Boolean
True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.
-
#can_edit_messages ⇒ Boolean
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
-
#can_edit_stories ⇒ Boolean
True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and 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 access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages and ignore slow mode.
-
#can_manage_topics ⇒ Boolean
True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only.
-
#can_manage_video_chats ⇒ Boolean
True, if the administrator can manage video 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 or view channel statistics; applicable to channels only.
-
#can_post_stories ⇒ Boolean
True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and 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 or view supergroup statistics; always true for channels.
-
#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_change_info ⇒ Boolean
True, if the administrator can change the chat title, photo, and other settings.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_change_info @can_change_info end |
#can_delete_messages ⇒ Boolean
True, if the administrator can delete messages of other users.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def @can_delete_messages end |
#can_delete_stories ⇒ Boolean
True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_delete_stories @can_delete_stories end |
#can_edit_messages ⇒ Boolean
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def @can_edit_messages end |
#can_edit_stories ⇒ Boolean
True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_edit_stories @can_edit_stories end |
#can_invite_users ⇒ Boolean
True, if the administrator can invite new users to the chat.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_invite_users @can_invite_users end |
#can_manage_chat ⇒ Boolean
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_manage_chat @can_manage_chat end |
#can_manage_topics ⇒ Boolean
True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_manage_topics @can_manage_topics end |
#can_manage_video_chats ⇒ Boolean
True, if the administrator can manage video chats.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_manage_video_chats @can_manage_video_chats end |
#can_pin_messages ⇒ Boolean
True, if the administrator can pin messages; applicable to basic groups and supergroups only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def @can_pin_messages end |
#can_post_messages ⇒ Boolean
True, if the administrator can create channel posts or view channel statistics; applicable to channels only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def @can_post_messages end |
#can_post_stories ⇒ Boolean
True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_post_stories @can_post_stories 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.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_promote_members @can_promote_members end |
#can_restrict_members ⇒ Boolean
True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for channels.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def can_restrict_members @can_restrict_members end |
#is_anonymous ⇒ Boolean
True, if the administrator isn’t shown in the chat member list and sends messages anonymously; applicable to supergroups only.
31 32 33 |
# File 'lib/tdlib/types/chat_administrator_rights.rb', line 31 def is_anonymous @is_anonymous end |