account.AcceptAuthorization#

class pyrogram.raw.functions.account.AcceptAuthorization#

Sends a Telegram Passport authorization form, effectively sharing data with the service.

Details:
  • Layer: 158

  • ID: F3ED4C73

Parameters:
  • bot_id (int 64-bit) – Bot ID.

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

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

  • value_hashes (List of SecureValueHash) – Types of values sent and their hashes.

  • credentials (SecureCredentialsEncrypted) – Encrypted values.

Returns:

bool