Layer 220
method Users
account.acceptAuthorization#f3ed4c73 bot_id:long scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool;

Parameters

Name Type Description
BotId long Bot ID
Scope string Telegram Passport element types requested by the service
PublicKey string Service's public key
ValueHashes Vector<SecureValueHash> Types of values sent and their hashes
Credentials SecureCredentialsEncrypted Encrypted values

Returns

Bool

Possible Errors

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

Gogram Example

// AccountAcceptAuthorization - positional arguments
result, err := client.AccountAcceptAuthorization(int64(0), "...", "...", []tg.SecureValueHash{&tg.SecureValueHash{}}, &tg.SecureCredentialsEncrypted{})
if err != nil {
    // handle error
}
// result is *tg.Bool