EncryptedPassportElement
public struct EncryptedPassportElement : Codable, Equatable, FunctionResult
Contains information about an encrypted Telegram Passport element; for bots only
-
Type of Telegram Passport element
Declaration
Swift
public let type: PassportElementType -
Encrypted JSON-encoded data about the user
Declaration
Swift
public let data: Bytes -
The front side of an identity document
Declaration
Swift
public let frontSide: DatedFile -
The reverse side of an identity document; may be null
Declaration
Swift
public let reverseSide: DatedFile? -
Selfie with the document; may be null
Declaration
Swift
public let selfie: DatedFile? -
List of files containing a certified English translation of the document
Declaration
Swift
public let translation: [DatedFile] -
List of attached files
Declaration
Swift
public let files: [DatedFile] -
Unencrypted data, phone number or email address
Declaration
Swift
public let value: String -
Hash of the entire element
Declaration
Swift
public let hash: String -
Contains information about an encrypted Telegram Passport element; for bots only
Declaration
Parameters
typeType of Telegram Passport element
dataEncrypted JSON-encoded data about the user
frontSideThe front side of an identity document
reverseSideThe reverse side of an identity document; may be null
selfieSelfie with the document; may be null
translationList of files containing a certified English translation of the document
filesList of attached files
valueUnencrypted data, phone number or email address
hashHash of the entire element
View on GitHub
Install in Dash
EncryptedPassportElement Structure Reference