InputSecureValue
- class pyrogram.raw.base.InputSecureValue
Secure value, for more info see the passport docs »
- Constructors:
This base type has 1 constructor available.
Secure value, for more info see the passport docs »
TL Schema
inputSecureValue#db21d0a7
flags:#
type:SecureValueType
data:flags.0?SecureData
front_side:flags.1?InputSecureFile
reverse_side:flags.2?InputSecureFile
selfie:flags.3?InputSecureFile
translation:flags.6?Vector<InputSecureFile>
files:flags.4?Vector<InputSecureFile>
plain_data:flags.5?SecurePlainData
= InputSecureValue
Parameter Tree
InputSecureValue
├── type →
SecureValueType│ ├──
SecureValueTypePassport│ ├──
SecureValueTypeAddress│ ├──
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)Example
InputSecureValue(
type=SecureValueTypePersonalDetails(),
data=SecureData(
data=b"data",
data_hash=b"data",
secret=b"data"
),
front_side=InputSecureFileUploaded(
id=0,
parts=0,
md5_checksum="text",
file_hash=b"data",
secret=b"data"
),
reverse_side=InputSecureFileUploaded(
id=0,
parts=0,
md5_checksum="text",
file_hash=b"data",
secret=b"data"
),
selfie=InputSecureFileUploaded(
id=0,
parts=0,
md5_checksum="text",
file_hash=b"data",
secret=b"data"
),
translation=[
InputSecureFileUploaded(
id=0,
parts=0,
md5_checksum="text",
file_hash=b"data",
secret=b"data"
)
],
files=[
InputSecureFileUploaded(
id=0,
parts=0,
md5_checksum="text",
file_hash=b"data",
secret=b"data"
)
],
plain_data=SecurePlainPhone(phone="+1234567890"),
)