import_web_token_authorization()

async Client.import_web_token_authorization()

Login by importing a web authorization token.

Usable by Users Bots
Parameters:
  • web_auth_token (str) – The web authorization token.

  • api_id (int, optional) – Application identifier. Defaults to the client’s api_id.

  • api_hash (str, optional) – Application identifier hash. Defaults to the client’s api_hash.

Returns:

Authorization – The authorization object.

Example

auth = await app.import_web_token_authorization(token)