account.SaveSecureValue
- class pyrogram.raw.functions.account.SaveSecureValue
Securely save Telegram Passport document, for more info see the passport docs »
- Details:
Layer:
223ID:
899FE31D
- Parameters:
value (
InputSecureValue) – Secure value, for more info see the passport docs »secure_secret_id (
int64-bit) – Passport secret hash, for more info see the passport docs »
- Returns:
TL Schema
account.saveSecureValue#899fe31d
value:InputSecureValue
secure_secret_id:long
= SecureValue
Parameter Tree
SaveSecureValue
├── value →
InputSecureValue│ └──
InputSecureValue│ ├── type →
SecureValueType│ │ ├──
SecureValueTypePersonalDetails│ │ ├──
SecureValueTypePassport│ │ ├──
SecureValueTypeDriverLicense│ │ ├──
SecureValueTypeIdentityCard│ │ ├──
SecureValueTypeInternalPassport│ │ ├──
SecureValueTypeAddress│ │ ├──
SecureValueTypeUtilityBill│ │ ├──
SecureValueTypeBankStatement│ │ ├──
SecureValueTypeRentalAgreement│ │ ├──
SecureValueTypePhone│ │ └──
SecureValueTypeEmail│ ├── data →
SecureData (optional)│ │ └──
SecureData│ │ ├── data →
bytes│ │ ├── data_hash →
bytes│ │ └── secret →
bytes│ ├── front_side →
InputSecureFile (optional)│ │ ├──
InputSecureFileUploaded│ │ │ ├── id →
long│ │ │ ├── parts →
int│ │ │ ├── md5_checksum →
string│ │ │ ├── file_hash →
bytes│ │ │ └── secret →
bytes│ │ └──
InputSecureFile│ │ ├── id →
long│ │ └── access_hash →
long│ ├── reverse_side →
InputSecureFile (optional)│ │ ├──
InputSecureFileUploaded│ │ │ ├── id →
long│ │ │ ├── parts →
int│ │ │ ├── md5_checksum →
string│ │ │ ├── file_hash →
bytes│ │ │ └── secret →
bytes│ │ └──
InputSecureFile│ │ ├── id →
long│ │ └── access_hash →
long│ ├── selfie →
InputSecureFile (optional)│ │ ├──
InputSecureFileUploaded│ │ │ ├── id →
long│ │ │ ├── parts →
int│ │ │ ├── md5_checksum →
string│ │ │ ├── file_hash →
bytes│ │ │ └── secret →
bytes│ │ └──
InputSecureFile│ │ ├── id →
long│ │ └── access_hash →
long│ ├── translation →
Vector < InputSecureFile > (optional)│ │ ├──
InputSecureFileUploaded│ │ │ ├── id →
long│ │ │ ├── parts →
int│ │ │ ├── md5_checksum →
string│ │ │ ├── file_hash →
bytes│ │ │ └── secret →
bytes│ │ └──
InputSecureFile│ │ ├── id →
long│ │ └── access_hash →
long│ ├── files →
Vector < InputSecureFile > (optional)│ │ ├──
InputSecureFileUploaded│ │ │ ├── id →
long│ │ │ ├── parts →
int│ │ │ ├── md5_checksum →
string│ │ │ ├── file_hash →
bytes│ │ │ └── secret →
bytes│ │ └──
InputSecureFile│ │ ├── id →
long│ │ └── access_hash →
long│ └── plain_data →
SecurePlainData (optional)│ ├──
SecurePlainPhone│ │ └── phone →
string│ └──
SecurePlainEmail│ └── email →
string└── secure_secret_id →
longExample
await app.invoke(
SaveSecureValue(
value=InputSecureValue(
type=SecureValueTypePersonalDetails(),
data=None,
front_side=None,
reverse_side=None,
selfie=None,
translation=None,
files=None,
plain_data=None
),
secure_secret_id=0,
)
)