Skip to content

class Tourmaline::PassportData
inherits Reference #

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

Included modules

JSON::Serializable

Constructors#

.new(pull : JSON::PullParser) #

View source

.new(credentials, data : Array(Tourmaline::EncryptedPassportElement) = [] of Tourmaline::EncryptedPassportElement) #

View source

Methods#

#credentials : Tourmaline::EncryptedCredentials #

Encrypted credentials required to decrypt the data

View source

#credentials=(credentials : Tourmaline::EncryptedCredentials) #

Encrypted credentials required to decrypt the data

View source

#data : Array(Tourmaline::EncryptedPassportElement) #

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

View source

#data=(data : Array(Tourmaline::EncryptedPassportElement)) #

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

View source