api.getInternalLinkType()
Returns information about the type of an internal link. Returns a 404 error if the link is not internal. Can be called before authorization
Parameters
GetInternalLinkTypeParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
link | string | The link |
Returns
ApiResponse interface:interface ApiResponse {
_: 'getInternalLinkType' | 'error'
airgram: Airgram
request: {
method: 'getInternalLinkType'
params: GetInternalLinkTypeParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}