NAME

Net::API::Telegram::EncryptedPassportElement - Information about documents or other Telegram Passport elements shared with the bot by the user

SYNOPSIS

my $msg = Net::API::Telegram::EncryptedPassportElement->new( %data ) || 
die( Net::API::Telegram::EncryptedPassportElement->error, "\n" );

DESCRIPTION

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.

METHODS

new( {INIT HASH REF}, %PARAMETERS )

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

data( String )

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.

email( String )

Optional. User's verified email address, available only for email type

files( Array of PassportFile )

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.

front_side( Net::API::Telegram::PassportFile )

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.

hash( String )

Base64-encoded element hash for using in PassportElementErrorUnspecified

phone_number( String )

Optional. User's verified phone number, available only for phone_number type

reverse_side( Net::API::Telegram::PassportFile )

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.

selfie( Net::API::Telegram::PassportFile )

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.

translation( Array of PassportFile )

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.

type( String )

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

Copyright (c) 2000-2019 DEGUEST Pte. Ltd.

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Net::API::Telegram

COPYRIGHT & LICENSE

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.