Skip to content

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

Class: PassportData

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

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:2763

Parameters

ParameterType
payloadTelegramPassportData

Returns

PassportData

Properties

PropertyTypeDefined in
payloadTelegramPassportDatacontexts/index.d.ts:2762

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


credentials

Get Signature

get credentials(): EncryptedCredentials

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

Encrypted credentials required to decrypt the data

Returns

EncryptedCredentials


data

Get Signature

get data(): EncryptedPassportElement[]

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

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

Returns

EncryptedPassportElement[]