class PassportData

Describes Telegram Passport data shared with the bot by the user.

Methods

__construct(EncryptedPassportElement[] $data, EncryptedCredentials $credentials)

No description

array
getData()

Array with information about documents and other Telegram Passport elements that was shared with the bot.

getCredentials()

Encrypted credentials required to decrypt the data.

Details

at line 14
__construct(EncryptedPassportElement[] $data, EncryptedCredentials $credentials)

No description

Parameters

EncryptedPassportElement[] $data
EncryptedCredentials $credentials

at line 25
array getData()

Array with information about documents and other Telegram Passport elements that was shared with the bot.

Return Value

array

at line 33
EncryptedCredentials getCredentials()

Encrypted credentials required to decrypt the data.

Return Value

EncryptedCredentials