class Hamilton::Types::PassportData

Overview

Describes Telegram Passport data shared with the bot by the user.

Included Modules

Defined in:

types/passport_data.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

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

def self.new(params) #

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

def self.new(**params) #

Instance Method Detail

Encrypted credentials required to decrypt the data.


def credentials=(credentials : Hamilton::Types::EncryptedCredentials) #

Encrypted credentials required to decrypt the data.


Array with information about documents and other Telegram Passport elements that was shared with the bot.


def data=(data : Array(Hamilton::Types::EncryptedPassportElement)) #

Array with information about documents and other Telegram Passport elements that was shared with the bot.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.