Airgram

Guides
/
/
Methods

api.setName()

Changes the first and last name of the current user

Parameters SetNameParams:

NameTypeDescription
firstNamestring The new value of the first name for the current user; 1-64 characters
lastNamestring The new value of the optional last name for the current user; 0-64 characters
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setName' | 'error'
  airgram: Airgram
  request: {
    method: 'setName'
    params: SetNameParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}