class Telegram::API::EncryptedPassportElement
- Telegram::API::EncryptedPassportElement
- Telegram::API::Type
- Reference
- Object
Overview
Contains information about documents or other Telegram Passport elements shared with the bot by the user.
Defined in:
telegram/api/generated/types.crConstructors
- .new(type : String, hash : String, data : String | Nil = nil, phone_number : String | Nil = nil, email : String | Nil = nil, front_side : PassportFile | Nil = nil, reverse_side : PassportFile | Nil = nil, selfie : PassportFile | Nil = nil, files : Array(PassportFile) = Array(PassportFile).new, translation : Array(PassportFile) = Array(PassportFile).new)
-
.new(pull : JSON::PullParser)
Contains information about documents or other Telegram Passport elements shared with the bot by the user.
Instance Method Summary
-
#data : String | Nil
Optional.
-
#data=(data : String | Nil)
Optional.
-
#email : String | Nil
Optional.
-
#email=(email : String | Nil)
Optional.
-
#files : Array(PassportFile)
Optional.
-
#files=(files : Array(PassportFile))
Optional.
-
#front_side : PassportFile | Nil
Optional.
-
#front_side=(front_side : PassportFile | Nil)
Optional.
-
#hash : String
Base64-encoded element hash for using in PassportElementErrorUnspecified
-
#hash=(hash : String)
Base64-encoded element hash for using in PassportElementErrorUnspecified
-
#phone_number : String | Nil
Optional.
-
#phone_number=(phone_number : String | Nil)
Optional.
-
#reverse_side : PassportFile | Nil
Optional.
-
#reverse_side=(reverse_side : PassportFile | Nil)
Optional.
-
#selfie : PassportFile | Nil
Optional.
-
#selfie=(selfie : PassportFile | Nil)
Optional.
-
#translation : Array(PassportFile)
Optional.
-
#translation=(translation : Array(PassportFile))
Optional.
-
#type : String
Element type.
-
#type=(type : String)
Element type.
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
Contains information about documents or other Telegram Passport elements shared with the bot by the user.
Instance Method Detail
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for "personal_details", "passport", "driver_license", "identity_card", "internal_passport" and "address" types. Can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for "personal_details", "passport", "driver_license", "identity_card", "internal_passport" and "address" types. Can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. User's verified email address, available only for "email" type
Optional. Array of encrypted files with documents provided by the user, available for "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Array of encrypted files with documents provided by the user, available for "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Encrypted file with the front side of the document, provided by the user. Available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Encrypted file with the front side of the document, provided by the user. Available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. User's verified phone number, available only for "phone_number" type
Optional. User's verified phone number, available only for "phone_number" type
Optional. Encrypted file with the reverse side of the document, provided by the user. Available for "driver_license" and "identity_card". The file can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Encrypted file with the reverse side of the document, provided by the user. Available for "driver_license" and "identity_card". The file can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Element type. One of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration", "phone_number", "email".
Element type. One of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration", "phone_number", "email".