Layer 220
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

Update

Gogram Example

// Creating UpdateUserName constructor
obj := &tg.UpdateUserName{
    UserId: int64(0),
    FirstName: "...",
    LastName: "...",
    Usernames: []tg.Username{&tg.Username{}},
}