Skip to content

class Tourmaline::PassportElementErrorSelfie
inherits Reference #

Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie 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 hash of the file with the selfie

View source

#file_hash=(file_hash : String) #

Base64-encoded hash of the file with the selfie

View source

#message : String #

Error message

View source

#message=(message : String) #

Error message

View source

#source : String #

Error source, must be selfie

View source

#source=(source : String) #

Error source, must be selfie

View source

#type : String #

The section of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport"

View source

#type=(type : String) #

The section of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport"

View source