Constructor: updateUserName
Changes the user’s first name, last name and username.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
user_id | long | Yes | User identifier |
first_name | string | Yes | New first name. Corresponds to the new value of real_first_name field of the userFull constructor. |
last_name | string | Yes | New last name. Corresponds to the new value of real_last_name field of the userFull constructor. |
usernames | Array of Username | Yes | Usernames. |
Type: Update
Example:
$updateUserName = ['_' => 'updateUserName', 'user_id' => long, 'first_name' => 'string', 'last_name' => 'string', 'usernames' => [Username, Username]];