class Telegram::API::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.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

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) #

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.


[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]