mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
32 lines
913 B
Markdown
32 lines
913 B
Markdown
---
|
|
title: "username"
|
|
description: "Contains information about a username."
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: username
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
Contains information about a username.
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|editable|[Bool](/API_docs/types/Bool.html) | Optional|Whether the username is editable, meaning it wasn't bought on [fragment](https://fragment.com).|
|
|
|active|[Bool](/API_docs/types/Bool.html) | Optional|Whether the username is active.|
|
|
|username|[string](/API_docs/types/string.html) | Yes|The username.|
|
|
|
|
|
|
|
|
### Type: [Username](/API_docs/types/Username.html)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$username = ['_' => 'username', 'editable' => Bool, 'active' => Bool, 'username' => 'string'];
|
|
```
|