Skip to content

class Tourmaline::PassportElementErrorFile
inherits Reference #

Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.

Included modules

JSON::Serializable

Constructors#

.new(source, type, file_hash, message) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#file_hash : String #

Base64-encoded file hash

View source

#file_hash=(file_hash : String) #

Base64-encoded file hash

View source

#message : String #

Error message

View source

#message=(message : String) #

Error message

View source

#source : String #

Error source, must be file

View source

#source=(source : String) #

Error source, must be file

View source

#type : String #

The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"

View source

#type=(type : String) #

The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"

View source