Skip to content

getExternalLink

Function · TDLib 1.8.67 · d1085f9c

Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown

getExternalLink(
  link: string,
  allow_write_access: Bool
) → HttpUrl

string

The HTTP link

allow_write_access

Bool

Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to send them messages