class Tourmaline::PassportData
- Tourmaline::PassportData
- Reference
- Object
Overview
Describes Telegram Passport data shared with the bot by the user.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(credentials : Tourmaline::EncryptedCredentials, data : Array(Tourmaline::EncryptedPassportElement) = [] of Tourmaline::EncryptedPassportElement)
Instance Method Summary
-
#credentials : Tourmaline::EncryptedCredentials
Encrypted credentials required to decrypt the data
-
#credentials=(credentials : Tourmaline::EncryptedCredentials)
Encrypted credentials required to decrypt the data
-
#data : Array(Tourmaline::EncryptedPassportElement)
Array with information about documents and other Telegram Passport elements that was shared with the bot
-
#data=(data : Array(Tourmaline::EncryptedPassportElement))
Array with information about documents and other Telegram Passport elements that was shared with the bot
Constructor Detail
def self.new(credentials : Tourmaline::EncryptedCredentials, data : Array(Tourmaline::EncryptedPassportElement) = [] of Tourmaline::EncryptedPassportElement)
#
Instance Method Detail
def credentials : Tourmaline::EncryptedCredentials
#
Encrypted credentials required to decrypt the data
def credentials=(credentials : Tourmaline::EncryptedCredentials)
#
Encrypted credentials required to decrypt the data
def data : Array(Tourmaline::EncryptedPassportElement)
#
Array with information about documents and other Telegram Passport elements that was shared with the bot
def data=(data : Array(Tourmaline::EncryptedPassportElement))
#
Array with information about documents and other Telegram Passport elements that was shared with the bot