class Tourmaline::PassportElementErrorDataField

Overview

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

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, type : String, field_name : String, data_hash : String, message : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def data_hash : String #

Base64-encoded data hash


[View source]
def data_hash=(data_hash : String) #

Base64-encoded data hash


[View source]
def field_name : String #

Name of the data field which has the error


[View source]
def field_name=(field_name : String) #

Name of the data field which has the error


[View source]
def message : String #

Error message


[View source]
def message=(message : String) #

Error message


[View source]
def source : String #

Error source, must be data


[View source]
def source=(source : String) #

Error source, must be data


[View source]
def 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]
def 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]