MadelineProtoDocs/old_docs/API_docs_v25/constructors/updateUserName.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.1 KiB

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'];

PWRTelegram json-encoded version:

{"_": "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'}