peyk.platforms.telegram.types.passport_data

Classes

PassportData(data, credentials)

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

class peyk.platforms.telegram.types.passport_data.PassportData(data: List[EncryptedPassportElement], credentials: EncryptedCredentials)[source]

Bases: object

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

Variables:
data: List[EncryptedPassportElement]
credentials: EncryptedCredentials
classmethod from_dict(data: dict | None) PassportData | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.