Skip to content

GramIO API Reference / @gramio/contexts/dist / PassportData

Class: PassportData

Defined in: contexts/index.d.ts:2186

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

Constructors

Constructor

new PassportData(payload): PassportData

Defined in: contexts/index.d.ts:2188

Parameters

ParameterType
payloadTelegramPassportData

Returns

PassportData

Properties

PropertyTypeDefined in
payloadTelegramPassportDatacontexts/index.d.ts:2187

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:2190

MDN

Returns

string


credentials

Get Signature

get credentials(): EncryptedCredentials

Defined in: contexts/index.d.ts:2197

Encrypted credentials required to decrypt the data

Returns

EncryptedCredentials


data

Get Signature

get data(): EncryptedPassportElement[]

Defined in: contexts/index.d.ts:2195

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

Returns

EncryptedPassportElement[]