accept_authorization()

async Client.accept_authorization()

Accept a Telegram Passport authorization request and send requested values.

Usable by Users Bots
Parameters:
  • bot_id (int) – User identifier of the service’s bot.

  • scope (str) – Telegram Passport element types requested by the service.

  • public_key (str) – Service’s public key.

  • value_hashes (List of SecureValueHash) – Encrypted value hashes.

  • credentials (SecureCredentialsEncrypted) – Encrypted credentials.

Returns:

bool – On success, True is returned.