Layer 224
AccountAcceptAuthorization
Sends a Telegram Passport authorization form, effectively sharing data with the service
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
BoolGogram Example
// AccountAcceptAuthorization - positional arguments result, err := client.AccountAcceptAuthorization(int64(1234567890), "Hello, World!", "Hello, World!", []tg.SecureValueHash{&tg.SecureValueHash{}}, &tg.SecureCredentialsEncrypted{}) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | PUBLIC_KEY_REQUIRED | A public key is required. |