class TelegramBot::EncryptedPassportElement

Included Modules

Defined in:

telegram_bot/types/passport.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Instance Method Detail

def data : String | Nil #

def data=(data : String | Nil) #

def email : String | Nil #

def email=(email : String | Nil) #

def files : Array(PassportFile) | Nil #

def files=(files : Array(PassportFile) | Nil) #

def front_side : PassportFile | Nil #

def front_side=(front_side : PassportFile | Nil) #

def hash : String #
Description copied from class Object

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.


def hash=(hash : String) #

def phone_number : String | Nil #

def phone_number=(phone_number : String | Nil) #

def reverse_side : PassportFile | Nil #

def reverse_side=(reverse_side : PassportFile | Nil) #

def selfie : PassportFile | Nil #

def selfie=(selfie : PassportFile | Nil) #

def translation : Array(PassportFile) | Nil #

def translation=(translation : Array(PassportFile) | Nil) #

def type : String #

def type=(type : String) #