class Tourmaline::PassportData
inherits Reference
#
Describes Telegram Passport data shared with the bot by the user.
Included modules
JSON::Serializable
Constructors#
.new(credentials, data : Array(Tourmaline::EncryptedPassportElement) = [] of Tourmaline::EncryptedPassportElement)
#
(credentials, data : Array(Tourmaline::EncryptedPassportElement) = [] of Tourmaline::EncryptedPassportElement)
Methods#
#credentials : Tourmaline::EncryptedCredentials
#
: Tourmaline::EncryptedCredentials
Encrypted credentials required to decrypt the data
#credentials=(credentials : Tourmaline::EncryptedCredentials)
#
(credentials : Tourmaline::EncryptedCredentials)
Encrypted credentials required to decrypt the data
#data : Array(Tourmaline::EncryptedPassportElement)
#
: Array(Tourmaline::EncryptedPassportElement)
Array with information about documents and other Telegram Passport elements that was shared with the bot
#data=(data : Array(Tourmaline::EncryptedPassportElement))
#
(data : Array(Tourmaline::EncryptedPassportElement))
Array with information about documents and other Telegram Passport elements that was shared with the bot