get_internal_link

Function get_internal_link 

Source
pub async fn get_internal_link(
    type: InternalLinkType,
    is_http: bool,
    client_id: i32,
) -> Result<HttpUrl, Error>
Expand description

Returns an HTTPS or a tg: link with the given type. Can be called before authorization

ยงArguments

  • r#type - Expected type of the link
  • is_http - Pass true to create an HTTPS link (only available for some link types); pass false to create a tg: link
  • client_id - The client id to send the request to