Airgram

Guides
/
/
Methods

api.setCustomLanguagePackString()

Adds, edits or deletes a string in a custom local language pack. Can be called before authorization

Parameters SetCustomLanguagePackStringParams:

NameTypeDescription
languagePackIdstring Identifier of a previously added custom local language pack in the current localization target
newString New language pack string
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setCustomLanguagePackString' | 'error'
  airgram: Airgram
  request: {
    method: 'setCustomLanguagePackString'
    params: SetCustomLanguagePackStringParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}