MadelineProtoDocs/old_docs/API_docs_v102/constructors/updateUserName.md
2019-06-24 15:45:02 +02:00

931 B

title description image
updateUserName Update user name https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateUserName

Back to constructors index

Update user name

Attributes:

Name Type Required Description
user_id int Yes User ID
first_name string Yes First name
last_name string Yes Last name
username string Yes Username

Type: Update

Example:

$updateUserName = ['_' => 'updateUserName', 'user_id' => int, 'first_name' => 'string', 'last_name' => 'string', 'username' => 'string'];

Or, if you're into Lua:

updateUserName={_='updateUserName', user_id=int, first_name='string', last_name='string', username='string'}