Class: TD::Types::Usernames
- Defined in:
- lib/tdlib/types/usernames.rb
Overview
Describes usernames assigned to a user, a supergroup, or a channel.
Instance Attribute Summary collapse
-
#active_usernames ⇒ Array<TD::Types::String>
List of active usernames; the first one must be shown as the primary username.
-
#disabled_usernames ⇒ Array<TD::Types::String>
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.
-
#editable_username ⇒ TD::Types::String
The active username, which can be changed with setUsername or setSupergroupUsername.
Method Summary
Methods inherited from Base
Instance Attribute Details
#active_usernames ⇒ Array<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.
13 14 15 |
# File 'lib/tdlib/types/usernames.rb', line 13 def active_usernames @active_usernames end |
#disabled_usernames ⇒ Array<TD::Types::String>
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.
13 14 15 |
# File 'lib/tdlib/types/usernames.rb', line 13 def disabled_usernames @disabled_usernames end |
#editable_username ⇒ TD::Types::String
The active username, which can be changed with setUsername or setSupergroupUsername. Information about other active usernames can be received using getCollectibleItemInfo.
13 14 15 |
# File 'lib/tdlib/types/usernames.rb', line 13 def editable_username @editable_username end |