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
| Parameter | Type |
|---|---|
payload | TelegramPassportData |
Returns
PassportData
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramPassportData | contexts/index.d.ts:2187 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2190
Returns
string
credentials
Get Signature
get credentials():
EncryptedCredentials
Defined in: contexts/index.d.ts:2197
Encrypted credentials required to decrypt the data
Returns
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