api.getExternalLinkInfo()
Returns information about an action to be done when the current user clicks an external link. Don't use this method for links from secret chats if web page preview is disabled in secret chats
Parameters
GetExternalLinkInfoParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
link | string | The link |
Returns
ApiResponse interface:interface ApiResponse {
_: 'getExternalLinkInfo' | 'error'
airgram: Airgram
request: {
method: 'getExternalLinkInfo'
params: GetExternalLinkInfoParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}