Function get_passport_element

Source
pub async fn get_passport_element(
    type: PassportElementType,
    password: String,
    client_id: i32,
) -> Result<PassportElement, Error>
Expand description

Returns one of the available Telegram Passport elements

ยงArguments

  • r#type - Telegram Passport element type
  • password - The 2-step verification password of the current user
  • client_id - The client id to send the request to