class Tourmaline::PassportElementErrorFile

Overview

Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

[View source]

Instance Method Detail

def file_hash : String #

Base64-encoded file hash


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

Base64-encoded file hash


[View source]
def message : String #

Error message


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

Error message


[View source]
def source : String #

Error source, must be file


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

Error source, must be file


[View source]
def type : String #

The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"


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

The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"


[View source]