Class: TD::Types::ChatMemberStatus::Administrator

Inherits:
TD::Types::ChatMemberStatus show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_be_editedBoolean

True, if the current user can edit the administrator privileges for the called user.

Returns:

  • (Boolean)

    the current value of can_be_edited



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_be_edited
  @can_be_edited
end

#can_change_infoBoolean

True, if the administrator can change the chat title, photo, and other settings.

Returns:

  • (Boolean)

    the current value of can_change_info



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_change_info
  @can_change_info
end

#can_delete_messagesBoolean

True, if the administrator can delete messages of other users.

Returns:

  • (Boolean)

    the current value of can_delete_messages



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_delete_messages
  @can_delete_messages
end

#can_edit_messagesBoolean

True, if the administrator can edit messages of other users and pin messages; applicable to channels only.

Returns:

  • (Boolean)

    the current value of can_edit_messages



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_edit_messages
  @can_edit_messages
end

#can_invite_usersBoolean

True, if the administrator can invite new users to the chat.

Returns:

  • (Boolean)

    the current value of can_invite_users



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_invite_users
  @can_invite_users
end

#can_manage_chatBoolean

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.

Returns:

  • (Boolean)

    the current value of can_manage_chat



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_chatsBoolean

True, if the administrator can manage voice chats.

Returns:

  • (Boolean)

    the current value of 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_messagesBoolean

True, if the administrator can pin messages; applicable to basic groups and supergroups only.

Returns:

  • (Boolean)

    the current value of can_pin_messages



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_pin_messages
  @can_pin_messages
end

#can_post_messagesBoolean

True, if the administrator can create channel posts; applicable to channels only.

Returns:

  • (Boolean)

    the current value of can_post_messages



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_post_messages
  @can_post_messages
end

#can_promote_membersBoolean

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.

Returns:

  • (Boolean)

    the current value of can_promote_members



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_promote_members
  @can_promote_members
end

#can_restrict_membersBoolean

True, if the administrator can restrict, ban, or unban chat members.

Returns:

  • (Boolean)

    the current value of can_restrict_members



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def can_restrict_members
  @can_restrict_members
end

#custom_titleTD::Types::String

A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.

Returns:

  • (TD::Types::String)

    the current value of custom_title



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def custom_title
  @custom_title
end

#is_anonymousBoolean

True, if the administrator isn’t shown in the chat member list and sends messages anonymously; applicable to supergroups only.

Returns:

  • (Boolean)

    the current value of is_anonymous



27
28
29
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 27

def is_anonymous
  @is_anonymous
end