Class: TD::Types::Usernames

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/usernames.rb

Overview

Describes usernames assigned to a user, a supergroup, or a channel.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#active_usernamesArray<TD::Types::String>

List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames.

Returns:

  • (Array<TD::Types::String>)

    the current value of active_usernames



13
14
15
# File 'lib/tdlib/types/usernames.rb', line 13

def active_usernames
  @active_usernames
end

#disabled_usernamesArray<TD::Types::String>

List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.

Returns:

  • (Array<TD::Types::String>)

    the current value of disabled_usernames



13
14
15
# File 'lib/tdlib/types/usernames.rb', line 13

def disabled_usernames
  @disabled_usernames
end

#editable_usernameTD::Types::String

The active username, which can be changed with setUsername or setSupergroupUsername. Information about other active usernames can be received using getCollectibleItemInfo.

Returns:

  • (TD::Types::String)

    the current value of editable_username



13
14
15
# File 'lib/tdlib/types/usernames.rb', line 13

def editable_username
  @editable_username
end