tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::usernames Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::usernames:
td::td_api::Object td::TlObject

Public Member Functions

 usernames ()
 
 usernames (array< string > &&active_usernames_, array< string > &&disabled_usernames_, string const &editable_username_, array< string > &&collectible_usernames_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

array< stringactive_usernames_
 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.
 
array< stringdisabled_usernames_
 List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.
 
string editable_username_
 Active or disabled username, which may be changed with setUsername or setSupergroupUsername.
 
array< stringcollectible_usernames_
 Collectible usernames that were purchased at https://fragment.com and can be passed to getCollectibleItemInfo for more details.
 

Static Public Attributes

static const std::int32_t ID = 1263390614
 Identifier uniquely determining a type of the object.
 

Detailed Description

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

Definition at line 86419 of file td_api.h.

Constructor & Destructor Documentation

◆ usernames() [1/2]

td::td_api::usernames::usernames ( )

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

◆ usernames() [2/2]

td::td_api::usernames::usernames ( array< string > &&  active_usernames_,
array< string > &&  disabled_usernames_,
string const &  editable_username_,
array< string > &&  collectible_usernames_ 
)

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

Parameters
[in]active_usernames_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.
[in]disabled_usernames_List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.
[in]editable_username_Active or disabled username, which may be changed with setUsername or setSupergroupUsername.
[in]collectible_usernames_Collectible usernames that were purchased at https://fragment.com and can be passed to getCollectibleItemInfo for more details.

Member Function Documentation

◆ store()

void td::td_api::usernames::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ active_usernames_

array<string> td::td_api::usernames::active_usernames_

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.

Definition at line 86430 of file td_api.h.

◆ collectible_usernames_

array<string> td::td_api::usernames::collectible_usernames_

Collectible usernames that were purchased at https://fragment.com and can be passed to getCollectibleItemInfo for more details.

Definition at line 86436 of file td_api.h.

◆ disabled_usernames_

array<string> td::td_api::usernames::disabled_usernames_

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

Definition at line 86432 of file td_api.h.

◆ editable_username_

string td::td_api::usernames::editable_username_

Active or disabled username, which may be changed with setUsername or setSupergroupUsername.

Definition at line 86434 of file td_api.h.

◆ ID

const std::int32_t td::td_api::usernames::ID = 1263390614
static

Identifier uniquely determining a type of the object.

Definition at line 86454 of file td_api.h.


The documentation for this class was generated from the following file: