Layer 220
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
Flags # Flags, see TL conditional fields
FirstName flags.0?string New user first name
LastName flags.1?string New user last name
About flags.2?string New bio

Returns

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.

Gogram Example

// AccountUpdateProfile - using Params struct
result, err := client.AccountUpdateProfile(&tg.AccountUpdateProfileParams{

    // Optional fields:
    // FirstName: "...",
    // LastName: "...",
    // About: "...",
})
if err != nil {
    // handle error
}
// result is *tg.User