Function get_external_link

Source
pub async fn get_external_link(
    link: String,
    allow_write_access: bool,
    client_id: i32,
) -> Result<HttpUrl, Error>
Expand description

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

ยงArguments

  • link - The HTTP link
  • allow_write_access - Pass true if the current user allowed the bot, returned in getExternalLinkInfo, to send them messages
  • client_id - The client id to send the request to