account.toggleUsername
Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.
Activate or deactivate a purchased [fragment.com](https://fragment.com) username associated to the currently logged-in user.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
username | string | أيوه | اسم المستخدم |
active | Bool | أيوه | Whether to activate or deactivate it |
الردود
Bool
MTProto RPC
- 400 · USERNAMES_ACTIVE_TOO_MUCH — The maximum number of active usernames was reached.
- 400 · USERNAME_INVALID — The provided username is not valid.
- 400 · USERNAME_NOT_MODIFIED — The username was not modified.