Skip to content

class Tourmaline::PassportElementErrorDataField
inherits Reference #

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.

Included modules

JSON::Serializable

Constructors#

.new(source, type, field_name, data_hash, message) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#data_hash : String #

Base64-encoded data hash

View source

#data_hash=(data_hash : String) #

Base64-encoded data hash

View source

#field_name : String #

Name of the data field which has the error

View source

#field_name=(field_name : String) #

Name of the data field which has the error

View source

#message : String #

Error message

View source

#message=(message : String) #

Error message

View source

#source : String #

Error source, must be data

View source

#source=(source : String) #

Error source, must be data

View source

#type : String #

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

View source

#type=(type : String) #

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

View source