account.acceptAuthorization

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

 Method schema is available as of layer 133. Switch ยป

Parameters

Name Type Description
bot_id long Bot ID
scope string Telegram Passport element types requested by the service
public_key string Service's public key
value_hashes Vector<SecureValueHash> Types of values sent and their hashes
credentials SecureCredentialsEncrypted Encrypted values

Result

Bool

Possible errors

Code Type Description
400 BOT_INVALID This is not a valid bot.
400 PUBLIC_KEY_REQUIRED A public key is required.