telegram api method · layer 229 · #f3ed4c73
account.acceptAuthorization
Sends a Telegram Passport authorization form, effectively sharing data with the service
definition
account.acceptAuthorization#f3ed4c73 bot_id:long scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool;
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 |
returns
errors (4)
| code | error | description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | PUBLIC_KEY_REQUIRED | A public key is required. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 80–229 · constructor id changed 1×
| id | layers |
|---|---|
| #e7027c94 | 80–132 |
| #f3ed4c73 | 133–229 |