Skip to main content

updateUserName

Changes the user's first name, last name and username.

type tg.UpdateUserName struct { /* ... */ }

Implements Update.

Fields

NameTypeRequiredDescription
UserIDint64yesUser identifier
FirstNamestringyesNew first name. Corresponds to the new value of real_first_name field of the userFull constructor.
LastNamestringyesNew last name. Corresponds to the new value of real_last_name field of the userFull constructor.
Usernames[]UsernameyesUsernames.

References