Airgram

Guides
/
/
Methods

api.searchBackground()

Searches for a background by its name

Parameters SearchBackgroundParams:

NameTypeDescription
namestring The name of the background
Returns ApiResponse interface:
interface ApiResponse {
  _: 'searchBackground' | 'error'
  airgram: Airgram
  request: {
    method: 'searchBackground'
    params: SearchBackgroundParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}