InputPassportElementErrorSource
public indirect enum InputPassportElementErrorSource : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Contains the description of an error in a Telegram Passport element; for bots only
-
The element contains an error in an unspecified place. The error will be considered resolved when new data is added
- elementHash: Current hash of the entire element
Declaration
Swift
case unspecified(elementHash: Bytes)
-
A data field contains an error. The error is considered resolved when the field’s value changes
- fieldName: Field name
- dataHash: Current data hash
Declaration
Swift
case dataField(fieldName: String, dataHash: Bytes)
-
The front side of the document contains an error. The error is considered resolved when the file with the front side of the document changes
- fileHash: Current hash of the file containing the front side
Declaration
Swift
case frontSide(fileHash: Bytes)
-
The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side of the document changes
- fileHash: Current hash of the file containing the reverse side
Declaration
Swift
case reverseSide(fileHash: Bytes)
-
The selfie contains an error. The error is considered resolved when the file with the selfie changes
- fileHash: Current hash of the file containing the selfie
Declaration
Swift
case selfie(fileHash: Bytes)
-
One of the files containing the translation of the document contains an error. The error is considered resolved when the file with the translation changes
- fileHash: Current hash of the file containing the translation
Declaration
Swift
case translationFile(fileHash: Bytes)
-
The translation of the document contains an error. The error is considered resolved when the list of files changes
- fileHashes: Current hashes of all files with the translation
Declaration
Swift
case translationFiles(fileHashes: [Bytes])
-
The file contains an error. The error is considered resolved when the file changes
- fileHash: Current hash of the file which has the error
Declaration
Swift
case file(fileHash: Bytes)
-
The list of attached files contains an error. The error is considered resolved when the file list changes
- fileHashes: Current hashes of all attached files
Declaration
Swift
case files(fileHashes: [Bytes])