Layer 220
UpdateUserName
Changes the user's first name, last name and username.
constructor
updateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector<Username> = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| UserId | long | User identifier |
| FirstName | string | New first name. Corresponds to the new value of real_first_name field of the user Full constructor. |
| LastName | string | New last name. Corresponds to the new value of real_last_name field of the user Full constructor. |
| Usernames | Vector<Username> | Usernames. |
Returns
UpdateGogram Example
// Creating UpdateUserName constructor obj := &tg.UpdateUserName{ UserId: int64(0), FirstName: "...", LastName: "...", Usernames: []tg.Username{&tg.Username{}}, }