MadelineProtoDocs/docs/API_docs/constructors/username.md
2024-05-01 14:53:46 +02:00

913 B

title description nav_exclude image
username Contains information about a username. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: username

Back to constructors index

Contains information about a username.

Attributes:

Name Type Required Description
editable Bool Optional Whether the username is editable, meaning it wasn't bought on fragment.
active Bool Optional Whether the username is active.
username string Yes The username.

Type: Username

Example:

$username = ['_' => 'username', 'editable' => Bool, 'active' => Bool, 'username' => 'string'];