account.acceptAuthorization #

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

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.acceptAuthorization#f3ed4c73 bot_id:long scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool;

Parameters #

NameTypeDescription
bot_idlongBot ID
scopestringTelegram Passport element types requested by the service
public_keystringService's public key
value_hashesVector<SecureValueHash>Types of values sent and their hashes
credentialsSecureCredentialsEncryptedEncrypted values

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.
400PUBLIC_KEY_REQUIREDA public key is required.