Layer 227
AccountUpdateProfile
Updates user profile.
method
Users
Business
account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;
Parameters
| Name | Type | Description |
|---|---|---|
| FirstName | flags .0? string | New user first name |
| LastName | flags .1? string | New user last name |
| About | flags .2? string | New bio |
Returns
UserGogram Example
// AccountUpdateProfile - positional arguments result, err := client.AccountUpdateProfile("Hello, World!", "Hello, World!", "Hello, World!") if err != nil { // handle error } // result is *tg.User
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | ABOUT_TOO_LONG | About string too long. |
| 400 | BUSINESS_CONNECTION_INVALID | The connection_id passed to the wrapping invoke With Business Connection call is invalid. |
| 400 | FIRSTNAME_INVALID | The first name is invalid. |