account.AcceptAuthorization
- class pyrogram.raw.functions.account.AcceptAuthorization
Sends a Telegram Passport authorization form, effectively sharing data with the service
- Details:
Layer:
223ID:
F3ED4C73
- Parameters:
bot_id (
int64-bit) – Bot IDscope (
str) – Telegram Passport element types requested by the servicepublic_key (
str) – Service’s public keyvalue_hashes (List of
SecureValueHash) – Types of values sent and their hashescredentials (
SecureCredentialsEncrypted) – Encrypted values
- Returns:
bool
TL Schema
account.acceptAuthorization#f3ed4c73
bot_id:long
scope:string
public_key:string
value_hashes:Vector<SecureValueHash>
credentials:SecureCredentialsEncrypted
= Bool
Parameter Tree
AcceptAuthorization
├── bot_id →
long├── scope →
string├── public_key →
string├── value_hashes →
Vector < SecureValueHash >│ └──
SecureValueHash│ ├── type →
SecureValueType│ │ ├──
SecureValueTypePersonalDetails│ │ ├──
SecureValueTypePassport│ │ ├──
SecureValueTypeDriverLicense│ │ ├──
SecureValueTypeIdentityCard│ │ ├──
SecureValueTypeInternalPassport│ │ ├──
SecureValueTypeAddress│ │ ├──
SecureValueTypeUtilityBill│ │ ├──
SecureValueTypeBankStatement│ │ ├──
SecureValueTypeRentalAgreement│ │ ├──
SecureValueTypePhone│ │ └──
SecureValueTypeEmail│ └── hash →
bytes└── credentials →
SecureCredentialsEncrypted├── data →
bytes├── hash →
bytes└── secret →
bytesExample
await app.invoke(
AcceptAuthorization(
bot_id=0,
scope="text",
public_key="text",
value_hashes=[
SecureValueHash(
type=SecureValueTypePersonalDetails(),
hash=b"data"
)
],
credentials=SecureCredentialsEncrypted(
data=b"data",
hash=b"data",
secret=b"data"
),
)
)