Net::API::Telegram::EncryptedPassportElement - Information about documents or other Telegram Passport elements shared with the bot by the user
my $msg = Net::API::Telegram::EncryptedPassportElement->new( %data ) || die( Net::API::Telegram::EncryptedPassportElement->error, "\n" );
Net::API::Telegram::EncryptedPassportElement is a Telegram Message Object as defined here https://core.telegram.org/bots/api#encryptedpassportelement
This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
new() will create a new object for the package, pass any argument it might receive to the special standard routine init that must exist. Then it returns what returns init().
The valid parameters are as follow. Methods available here are also parameters to the new method.
verbose
debug
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. 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.
Base64-encoded element hash for using in PassportElementErrorUnspecified
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 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.
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.
Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
Jacques Deguest <jack@deguest.jp>
Net::API::Telegram
Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
To install Net::API::Telegram, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Telegram
CPAN shell
perl -MCPAN -e shell install Net::API::Telegram
For more information on module installation, please visit the detailed CPAN module installation guide.