class Tourmaline::PassportData

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(credentials : Tourmaline::EncryptedCredentials, data : Array(Tourmaline::EncryptedPassportElement) = [] of Tourmaline::EncryptedPassportElement) #

[View source]

Instance Method Detail

Encrypted credentials required to decrypt the data


[View source]
def credentials=(credentials : Tourmaline::EncryptedCredentials) #

Encrypted credentials required to decrypt the data


[View source]

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


[View source]
def data=(data : Array(Tourmaline::EncryptedPassportElement)) #

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


[View source]