Raw.account.AcceptAuthorization
Sends a telegram passport authorization form, effectively sharing data with the service
account.acceptAuthorization#f3ed4c73 bot_id:long scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool;
export namespace Raw {
export namespace account {
export class AcceptAuthorization {
constructor(params: {
botId: bigint;
scope: string;
publicKey: string;
valueHashes: Array<Raw.TypeSecureValueHash>;
credentials: Raw.TypeSecureCredentialsEncrypted;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xf3ed4c73
Property
botId
: bigintBot id
scope
: stringTelegram passport element types requested by the service
publicKey
: stringService’s public key
valueHashes
: Array of Raw.TypeSecureValueHashTypes of values sent and their hashes
credentials
: Raw.TypeSecureCredentialsEncryptedEncrypted values