class

Tourmaline::PassportElementErrorDataField

Inherits JSON::Serializable / Reference / Object

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.

Constructors

new(source : String, type : String, field_name : String, data_hash : String, message : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data_hash

Base64-encoded data hash

Source
data_hash=(data_hash : String)

Base64-encoded data hash

Source
field_name

Name of the data field which has the error

Source
field_name=(field_name : String)

Name of the data field which has the error

Source
message

Error message

Source
message=(message : String)

Error message

Source
source

Error source, must be data

Source
source=(source : String)

Error source, must be data

Source
type

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

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"

Source