Airgram

Guides
/
/
Methods

api.sharePhoneNumber()

Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber

Parameters SharePhoneNumberParams:

NameTypeDescription
userIdnumber Identifier of the user with whom to share the phone number. The user must be a mutual contact
Returns ApiResponse interface:
interface ApiResponse {
  _: 'sharePhoneNumber' | 'error'
  airgram: Airgram
  request: {
    method: 'sharePhoneNumber'
    params: SharePhoneNumberParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}