PassportData

data class PassportData(data: List<EncryptedPassportElement>, credentials: EncryptedCredentials)

Contains information about Telegram Passport data shared with the bot by the user.

Parameters

data

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

credentials

Encrypted credentials required to decrypt the data

Constructors

PassportData
Link copied to clipboard
common
fun PassportData(data: List<EncryptedPassportElement> = emptyList(), credentials: EncryptedCredentials)
Array with information about documents and other Telegram Passport elements that was shared with the bot

Functions

component1
Link copied to clipboard
common
operator fun component1(): List<EncryptedPassportElement>
component2
Link copied to clipboard
common
operator fun component2(): EncryptedCredentials
copy
Link copied to clipboard
common
fun copy(data: List<EncryptedPassportElement> = emptyList(), credentials: EncryptedCredentials): PassportData
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

credentials
Link copied to clipboard
common
val credentials: EncryptedCredentials
Encrypted credentials required to decrypt the data
data
Link copied to clipboard
common
val data: List<EncryptedPassportElement>
Array with information about documents and other Telegram Passport elements that was shared with the bot