InputIdentityDocument
public struct InputIdentityDocument : Codable, Equatable, FunctionResult
An identity document to be saved to Telegram Passport
-
Document number; 1-24 characters
Declaration
Swift
public let number: String
-
Document expiry date, if available
Declaration
Swift
public let expiryDate: Date
-
Front side of the document
Declaration
Swift
public let frontSide: InputFile
-
Reverse side of the document; only for driver license and identity card
Declaration
Swift
public let reverseSide: InputFile
-
Selfie with the document, if available
Declaration
Swift
public let selfie: InputFile
-
List of files containing a certified English translation of the document
Declaration
Swift
public let translation: [InputFile]
-
An identity document to be saved to Telegram Passport
Declaration
Parameters
number
Document number; 1-24 characters
expiryDate
Document expiry date, if available
frontSide
Front side of the document
reverseSide
Reverse side of the document; only for driver license and identity card
selfie
Selfie with the document, if available
translation
List of files containing a certified English translation of the document