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
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
proxyId | number | 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>
}