Airgram

Guides
/
/
Methods

api.getProxyLink()

Returns an HTTPS link, which can be used to add a proxy. Available only for SOCKS5 and MTProto proxies. Can be called before authorization

Parameters GetProxyLinkParams:

NameTypeDescription
proxyIdnumber Proxy identifier
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getProxyLink' | 'error'
  airgram: Airgram
  request: {
    method: 'getProxyLink'
    params: GetProxyLinkParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}