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
type
Type of Telegram Passport element
data
Encrypted JSON-encoded data about the user
frontSide
The front side of an identity document
reverseSide
The reverse side of an identity document; may be null
selfie
Selfie with the document; may be null
translation
List of files containing a certified English translation of the document
files
List of attached files
value
Unencrypted data, phone number or email address
hash
Hash of the entire element