Function send_passport_authorization_form

Source
pub async fn send_passport_authorization_form(
    authorization_form_id: i32,
    types: Vec<PassportElementType>,
    client_id: i32,
) -> Result<(), Error>
Expand description

Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused

ยงArguments

  • authorization_form_id - Authorization form identifier
  • types - Types of Telegram Passport elements chosen by user to complete the authorization form
  • client_id - The client id to send the request to