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 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

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



11
12
13
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 11

def can_be_edited
  @can_be_edited
end

#custom_titleTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of custom_title



11
12
13
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 11

def custom_title
  @custom_title
end

#rightsTD::Types::ChatAdministratorRights

Rights of the administrator.

Returns:



11
12
13
# File 'lib/tdlib/types/chat_member_status/administrator.rb', line 11

def rights
  @rights
end